⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 anttimerspage.cs

📁 包括Pheromones Algorythm、Memory Algorythm和Hill Climbing Algorythm I
💻 CS
字号:
using System;
using System.Windows.Forms;

namespace PathFinder
{
	/// <summary>
	/// Summary description for AntTimersPage.
	/// </summary>
	public class AntTimersPage : System.Windows.Forms.TabPage
	{
		private GroupBox antTimersBox;
		private NumericUpDown pheromoneDecayBox;
		private Label pheromoneDecayLabel;


		public int PheromoneDecay
		{
			get
			{
				return ( ( int )pheromoneDecayBox.Value * 1000 );
			}
			set
			{
				pheromoneDecayBox.Value = value;
			}
		}

		public AntTimersPage( Control parent )
		{
			//
			// TODO: Add constructor logic here
			//

			antTimersBox = new System.Windows.Forms.GroupBox();
			pheromoneDecayLabel = new System.Windows.Forms.Label();
			pheromoneDecayBox = new System.Windows.Forms.NumericUpDown();

			SuspendLayout();
			antTimersBox.SuspendLayout();
			( ( System.ComponentModel.ISupportInitialize )( pheromoneDecayBox ) ).BeginInit();

			Controls.Add( antTimersBox );
			Location = new System.Drawing.Point(4, 22);
			Name = "AntTimersPage";
			Size = new System.Drawing.Size(616, 230);
			TabIndex = 2;
			Text = "Ant Timers";

			antTimersBox.Controls.Add( pheromoneDecayLabel );
			antTimersBox.Controls.Add( pheromoneDecayBox );
			antTimersBox.Location = new System.Drawing.Point(16, 16);
			antTimersBox.Name = "AntTimersBox";
			antTimersBox.Size = new System.Drawing.Size(352, 100);
			antTimersBox.TabIndex = 0;
			antTimersBox.TabStop = false;
			antTimersBox.Text = "Ant Timers";

			pheromoneDecayLabel.Location = new System.Drawing.Point(136, 16);
			pheromoneDecayLabel.Name = "PheromoneDecayLabel";
			pheromoneDecayLabel.Size = new System.Drawing.Size(160, 23);
			pheromoneDecayLabel.TabIndex = 1;
			pheromoneDecayLabel.Text = "Pheromone Decay ( In Secs )";

			pheromoneDecayBox.Location = new System.Drawing.Point(8, 16);
			pheromoneDecayBox.Name = "PheromoneDecayBox";
			pheromoneDecayBox.TabIndex = 0;
			pheromoneDecayBox.Value = new System.Decimal(new int[] {
																			10,
																			0,
																			0,
																			0});

			ResumeLayout( false );
			antTimersBox.ResumeLayout( false );
			( (System.ComponentModel.ISupportInitialize)( pheromoneDecayBox ) ).EndInit();

		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -