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

📄 form1.cs

📁 包括Pheromones Algorythm、Memory Algorythm和Hill Climbing Algorythm I
💻 CS
📖 第 1 页 / 共 5 页
字号:
			this.tabPage1.Controls.Add(this.groupBox1);
			this.tabPage1.Location = new System.Drawing.Point(4, 22);
			this.tabPage1.Name = "tabPage1";
			this.tabPage1.Size = new System.Drawing.Size(584, 230);
			this.tabPage1.TabIndex = 0;
			this.tabPage1.Text = "Main Page";
			// 
			// button1
			// 
			this.button1.Location = new System.Drawing.Point(456, 192);
			this.button1.Name = "button1";
			this.button1.TabIndex = 8;
			this.button1.Text = "Log Data";
			this.button1.Click += new System.EventHandler(this.OnTestTextFileWrite);
			// 
			// resetButton
			// 
			this.resetButton.Location = new System.Drawing.Point(496, 80);
			this.resetButton.Name = "resetButton";
			this.resetButton.TabIndex = 7;
			this.resetButton.Text = "Reset";
			this.resetButton.Click += new System.EventHandler(this.OnResetButton);
			// 
			// editButton
			// 
			this.editButton.Location = new System.Drawing.Point(440, 160);
			this.editButton.Name = "editButton";
			this.editButton.Size = new System.Drawing.Size(136, 23);
			this.editButton.TabIndex = 6;
			this.editButton.Text = "Enter Edit Mode";
			this.editButton.Click += new System.EventHandler(this.OnEnterEditMode);
			// 
			// groupBox4
			// 
			this.groupBox4.Controls.Add(this.label1);
			this.groupBox4.Controls.Add(this.timerInterval);
			this.groupBox4.Location = new System.Drawing.Point(216, 8);
			this.groupBox4.Name = "groupBox4";
			this.groupBox4.Size = new System.Drawing.Size(272, 100);
			this.groupBox4.TabIndex = 4;
			this.groupBox4.TabStop = false;
			this.groupBox4.Text = "Timers";
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(136, 24);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(128, 23);
			this.label1.TabIndex = 1;
			this.label1.Text = "Update Timer ( In Secs )";
			// 
			// timerInterval
			// 
			this.timerInterval.Location = new System.Drawing.Point(8, 24);
			this.timerInterval.Maximum = new System.Decimal(new int[] {
																		  1000,
																		  0,
																		  0,
																		  0});
			this.timerInterval.Name = "timerInterval";
			this.timerInterval.TabIndex = 0;
			this.timerInterval.ThousandsSeparator = true;
			this.timerInterval.Value = new System.Decimal(new int[] {
																		2,
																		0,
																		0,
																		0});
			// 
			// stopButton
			// 
			this.stopButton.Location = new System.Drawing.Point(496, 40);
			this.stopButton.Name = "stopButton";
			this.stopButton.TabIndex = 3;
			this.stopButton.Text = "Stop";
			this.stopButton.Click += new System.EventHandler(this.OnStop);
			// 
			// startButton
			// 
			this.startButton.Location = new System.Drawing.Point(496, 8);
			this.startButton.Name = "startButton";
			this.startButton.TabIndex = 2;
			this.startButton.Text = "Start";
			this.startButton.Click += new System.EventHandler(this.OnStart);
			// 
			// groupBox2
			// 
			this.groupBox2.Controls.Add(this.useHillClimbingThreeAlgorythmCheckBox);
			this.groupBox2.Controls.Add(this.useHillClimbingTwoAlgorythmCheckBox);
			this.groupBox2.Controls.Add(this.hillClimbingCheckBox);
			this.groupBox2.Controls.Add(this.memoryCheckBox);
			this.groupBox2.Controls.Add(this.pheromonesCheckBox);
			this.groupBox2.Controls.Add(this.useBasicCheckBox);
			this.groupBox2.Controls.Add(this.useBasic2CheckBox);
			this.groupBox2.Location = new System.Drawing.Point(8, 120);
			this.groupBox2.Name = "groupBox2";
			this.groupBox2.Size = new System.Drawing.Size(408, 104);
			this.groupBox2.TabIndex = 1;
			this.groupBox2.TabStop = false;
			this.groupBox2.Text = "Algorythms";
			// 
			// useHillClimbingThreeAlgorythmCheckBox
			// 
			this.useHillClimbingThreeAlgorythmCheckBox.AutoCheck = false;
			this.useHillClimbingThreeAlgorythmCheckBox.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
			this.useHillClimbingThreeAlgorythmCheckBox.Location = new System.Drawing.Point(184, 80);
			this.useHillClimbingThreeAlgorythmCheckBox.Name = "useHillClimbingThreeAlgorythmCheckBox";
			this.useHillClimbingThreeAlgorythmCheckBox.Size = new System.Drawing.Size(208, 24);
			this.useHillClimbingThreeAlgorythmCheckBox.TabIndex = 10;
			this.useHillClimbingThreeAlgorythmCheckBox.Text = "Use Hill Climbing 3 Algorythm";
			this.useHillClimbingThreeAlgorythmCheckBox.Click += new System.EventHandler(this.UseHillClimbingThreeAlgorythm);
			// 
			// useHillClimbingTwoAlgorythmCheckBox
			// 
			this.useHillClimbingTwoAlgorythmCheckBox.AutoCheck = false;
			this.useHillClimbingTwoAlgorythmCheckBox.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
			this.useHillClimbingTwoAlgorythmCheckBox.Location = new System.Drawing.Point(184, 56);
			this.useHillClimbingTwoAlgorythmCheckBox.Name = "useHillClimbingTwoAlgorythmCheckBox";
			this.useHillClimbingTwoAlgorythmCheckBox.Size = new System.Drawing.Size(208, 24);
			this.useHillClimbingTwoAlgorythmCheckBox.TabIndex = 9;
			this.useHillClimbingTwoAlgorythmCheckBox.Text = "Use Hill Climbing 2 Algorythm";
			this.useHillClimbingTwoAlgorythmCheckBox.Click += new System.EventHandler(this.UseHillClimbingTwoAlgorythm);
			// 
			// hillClimbingCheckBox
			// 
			this.hillClimbingCheckBox.AutoCheck = false;
			this.hillClimbingCheckBox.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
			this.hillClimbingCheckBox.Location = new System.Drawing.Point(184, 32);
			this.hillClimbingCheckBox.Name = "hillClimbingCheckBox";
			this.hillClimbingCheckBox.Size = new System.Drawing.Size(184, 24);
			this.hillClimbingCheckBox.TabIndex = 8;
			this.hillClimbingCheckBox.Text = "Use Hill Climbing Algorythm";
			this.hillClimbingCheckBox.Click += new System.EventHandler(this.UseHillClimbingAlgorythm);
			// 
			// memoryCheckBox
			// 
			this.memoryCheckBox.AutoCheck = false;
			this.memoryCheckBox.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
			this.memoryCheckBox.Location = new System.Drawing.Point(184, 8);
			this.memoryCheckBox.Name = "memoryCheckBox";
			this.memoryCheckBox.Size = new System.Drawing.Size(144, 24);
			this.memoryCheckBox.TabIndex = 7;
			this.memoryCheckBox.Text = "Use Memory Algorythm";
			this.memoryCheckBox.Click += new System.EventHandler(this.UseMemoryAlgorythm);
			// 
			// pheromonesCheckBox
			// 
			this.pheromonesCheckBox.AutoCheck = false;
			this.pheromonesCheckBox.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
			this.pheromonesCheckBox.Location = new System.Drawing.Point(16, 72);
			this.pheromonesCheckBox.Name = "pheromonesCheckBox";
			this.pheromonesCheckBox.Size = new System.Drawing.Size(168, 24);
			this.pheromonesCheckBox.TabIndex = 6;
			this.pheromonesCheckBox.Text = "Use Pheromones Algorythm";
			this.pheromonesCheckBox.Click += new System.EventHandler(this.UsePheromonesAlgorythm);
			// 
			// useBasicCheckBox
			// 
			this.useBasicCheckBox.AutoCheck = false;
			this.useBasicCheckBox.Checked = true;
			this.useBasicCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
			this.useBasicCheckBox.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
			this.useBasicCheckBox.Location = new System.Drawing.Point(16, 24);
			this.useBasicCheckBox.Name = "useBasicCheckBox";
			this.useBasicCheckBox.Size = new System.Drawing.Size(136, 24);
			this.useBasicCheckBox.TabIndex = 0;
			this.useBasicCheckBox.Text = "Use Basic Algorythm";
			this.useBasicCheckBox.Click += new System.EventHandler(this.useBasicCheckBox_CheckedChanged);
			// 
			// useBasic2CheckBox
			// 
			this.useBasic2CheckBox.AutoCheck = false;
			this.useBasic2CheckBox.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
			this.useBasic2CheckBox.Location = new System.Drawing.Point(16, 48);
			this.useBasic2CheckBox.Name = "useBasic2CheckBox";
			this.useBasic2CheckBox.Size = new System.Drawing.Size(144, 24);
			this.useBasic2CheckBox.TabIndex = 5;
			this.useBasic2CheckBox.Text = "Use Basic 2 Algorythm";
			this.useBasic2CheckBox.Click += new System.EventHandler(this.useBasic2CheckBox_CheckedChanged);
			// 
			// groupBox1
			// 
			this.groupBox1.Controls.Add(this.useAntsCheckBox);
			this.groupBox1.Controls.Add(this.useAmeobaCheckBox);
			this.groupBox1.Location = new System.Drawing.Point(8, 8);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.TabIndex = 0;
			this.groupBox1.TabStop = false;
			this.groupBox1.Text = "Critters";
			// 
			// useAntsCheckBox
			// 
			this.useAntsCheckBox.AutoCheck = false;
			this.useAntsCheckBox.Checked = true;
			this.useAntsCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
			this.useAntsCheckBox.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
			this.useAntsCheckBox.Location = new System.Drawing.Point(8, 24);
			this.useAntsCheckBox.Name = "useAntsCheckBox";
			this.useAntsCheckBox.TabIndex = 1;
			this.useAntsCheckBox.Text = "Use Ants";
			this.useAntsCheckBox.Click += new System.EventHandler(this.OnUseAntsClick);
			// 
			// useAmeobaCheckBox
			// 
			this.useAmeobaCheckBox.AutoCheck = false;
			this.useAmeobaCheckBox.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
			this.useAmeobaCheckBox.Location = new System.Drawing.Point(8, 56);
			this.useAmeobaCheckBox.Name = "useAmeobaCheckBox";
			this.useAmeobaCheckBox.TabIndex = 5;
			this.useAmeobaCheckBox.Text = "Use Ameoba";
			this.useAmeobaCheckBox.Click += new System.EventHandler(this.OnUseAmeobaClick);
			// 
			// tabPage2
			// 
			this.tabPage2.Controls.Add(this.colorGroupBox);
			this.tabPage2.Location = new System.Drawing.Point(4, 22);
			this.tabPage2.Name = "tabPage2";
			this.tabPage2.Size = new System.Drawing.Size(584, 230);
			this.tabPage2.TabIndex = 1;
			this.tabPage2.Text = "Individual Ant Setup";
			// 
			// colorGroupBox
			// 
			this.colorGroupBox.Location = new System.Drawing.Point(336, 16);
			this.colorGroupBox.Name = "colorGroupBox";
			this.colorGroupBox.Size = new System.Drawing.Size(256, 208);
			this.colorGroupBox.TabIndex = 1;
			this.colorGroupBox.TabStop = false;
			this.colorGroupBox.Text = "groupBox3";
			// 
			// tabPage3
			// 
			this.tabPage3.Controls.Add(this.groupBox5);
			this.tabPage3.Controls.Add(this.groupBox3);
			this.tabPage3.Controls.Add(this.checkBox1);
			this.tabPage3.Location = new System.Drawing.Point(4, 22);
			this.tabPage3.Name = "tabPage3";
			this.tabPage3.Size = new System.Drawing.Size(584, 230);
			this.tabPage3.TabIndex = 2;
			this.tabPage3.Text = "Logging";
			// 
			// groupBox5
			// 
			this.groupBox5.Controls.Add(this.generalProgressMessages);
			this.groupBox5.Controls.Add(this.generalShowAll);
			this.groupBox5.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.groupBox5.Location = new System.Drawing.Point(8, 24);
			this.groupBox5.Name = "groupBox5";
			this.groupBox5.Size = new System.Drawing.Size(200, 72);
			this.groupBox5.TabIndex = 3;
			this.groupBox5.TabStop = false;
			this.groupBox5.Text = "General";
			// 
			// generalProgressMessages
			// 
			this.generalProgressMessages.AutoCheck = false;
			this.generalProgressMessages.Checked = true;
			this.generalProgressMessages.CheckState = System.Windows.Forms.CheckState.Checked;
			this.generalProgressMessages.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.generalProgressMessages.Location = new System.Drawing.Point(8, 16);
			this.generalProgressMessages.Name = "generalProgressMessages";
			this.generalProgressMessages.Size = new System.Drawing.Size(184, 24);
			this.generalProgressMessages.TabIndex = 2;
			this.generalProgressMessages.Text = "Show Progress Messages";
			this.generalProgressMessages.Click += new System.EventHandler(this.OnLogsGeneralShowProgressMessages);
			// 
			// generalShowAll
			// 
			this.generalShowAll.AutoCheck = false;
			this.generalShowAll.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.generalShowAll.Location = new System.Drawing.Point(8, 40);
			this.generalShowAll.Name = "generalShowAll";
			this.generalShowAll.Size = new System.Drawing.Size(184, 24);
			this.generalShowAll.TabIndex = 4;
			this.generalShowAll.Text = "Show All";
			// 
			// groupBox3
			// 
			this.groupBox3.Controls.Add(this.crittersLogAll);
			this.groupBox3.Controls.Add(this.critterLogLastThirtyMessages);
			this.groupBox3.Controls.Add(this.crittersLogLastTwentyMessages);
			this.groupBox3.Controls.Add(this.crittersLogLastTenMessages);
			this.groupBox3.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.groupBox3.Location = new System.Drawing.Point(256, 16);
			this.groupBox3.Name = "groupBox3";
			this.groupBox3.Size = new System.Drawing.Size(312, 128);
			this.groupBox3.TabIndex = 1;
			this.groupBox3.TabStop = false;
			this.groupBox3.Text = "Critters";
			// 
			// crittersLogAll
			// 
			this.crittersLogAll.AutoCheck = false;
			this.crittersLogAll.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.crittersLogAll.Location = new System.Drawing.Point(16, 96);
			this.crittersLogAll.Name = "crittersLogAll";
			this.crittersLogAll.TabIndex = 3;
			this.crittersLogAll.Text = "Log All";
			this.crittersLogAll.Click += new System.EventHandler(this.OnLogAll);
			// 
			// critterLogLastThirtyMessages
			// 
			this.critterLogLastThirtyMessages.AutoCheck = false;
			this.critterLogLastThirtyMessages.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.critterLogLastThirtyMessages.Location = new System.Drawing.Point(16, 72);
			this.critterLogLastThirtyMessages.Name = "critterLogLastThirtyMessages";
			this.critterLogLastThirtyMessages.Size = new System.Drawing.Size(280, 24);
			this.critterLogLastThirtyMessages.TabIndex = 2;
			this.critterLogLastThirtyMessages.Text = "Log Last Thirty Messages";
			this.critterLogLastThirtyMessages.Click += new System.EventHandler(this.OnLogLastThirtyMessagages);
			// 
			// crittersLogLastTwentyMessages
			// 
			this.crittersLogLastTwentyMessages.AutoCheck = false;
			this.crittersLogLastTwentyMessages.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.crittersLogLastTwentyMessages.Location = new System.Drawing.Point(16, 48);
			this.crittersLogLastTwentyMessages.Name = "crittersLogLastTwentyMessages";
			this.crittersLogLastTwentyMessages.Size = new System.Drawing.Size(288, 24);
			this.crittersLogLastTwentyMessages.TabIndex = 1;
			this.crittersLogLastTwentyMessages.Text = "Log Last Twenty Messages";
			this.crittersLogLastTwentyMessages.Click += new System.EventHandler(this.OnLogLastTwentyMessages);
			// 
			// crittersLogLastTenMessages
			// 
			this.crittersLogLastTenMessages.AutoCheck = false;
			this.crittersLogLastTenMessages.Checked = true;
			this.crittersLogLastTenMessages.CheckState = System.Windows.Forms.CheckState.Checked;
			this.crittersLogLastTenMessages.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.crittersLogLastTenMessages.Location = new System.Drawing.Point(16, 24);
			this.crittersLogLastTenMessages.Name = "crittersLogLastTenMessages";
			this.crittersLogLastTenMessages.Size = new System.Drawing.Size(288, 24);
			this.crittersLogLastTenMessages.TabIndex = 0;
			this.crittersLogLastTenMessages.Text = "Log Last Ten Messages";
			this.crittersLogLastTenMessages.Click += new System.EventHandler(this.OnLogLastTenMessages);
			// 
			// checkBox1
			// 
			this.checkBox1.Location = new System.Drawing.Point(288, 24);
			this.checkBox1.Name = "checkBox1";
			this.checkBox1.Size = new System.Drawing.Size(248, 24);
			this.checkBox1.TabIndex = 0;
			this.checkBox1.Text = "checkBox1";
			// 
			// mainMenu1
			// 
			this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					  this.menuItem1,
																					  this.menuItem7,
																					  this.menuItem6,
																					  this.menuItem13});
			// 
			// menuItem1
			// 
			this.menuItem1.Index = 0;
			this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					  this.menuItem2,
																					  this.menuItem3,
																					  this.menuItem5,
																					  this.menuItem4});
			this.menuItem1.Text = "&File";
			// 
			// menuItem2
			// 
			this.menuItem2.Index = 0;
			this.menuItem2.Text = "&Start";
			this.menuItem2.Click += new System.EventHandler(this.OnStart);
			// 
			// menuItem3
			// 
			this.menuItem3.Index = 1;
			this.menuItem3.Text = "S&top";
			this.menuItem3.Click += new System.EventHandler(this.OnStop);
			// 
			// menuItem5
			// 
			this.menuItem5.Index = 2;
			this.menuItem5.Text = "-";
			// 

⌨️ 快捷键说明

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