📄 formmain.designer.cs
字号:
namespace GATest
{
partial class FormMain
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.buttonStart = new System.Windows.Forms.Button();
this.richTextBoxStat = new System.Windows.Forms.RichTextBox();
this.label1 = new System.Windows.Forms.Label();
this.textBoxMax = new System.Windows.Forms.TextBox();
this.textBoxCrossRate = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.textBoxVarRate = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.textBoxPopulationNum = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.pictureBoxShow = new System.Windows.Forms.PictureBox();
((System.ComponentModel.ISupportInitialize)(this.pictureBoxShow)).BeginInit();
this.SuspendLayout();
//
// buttonStart
//
this.buttonStart.Location = new System.Drawing.Point(530, 5);
this.buttonStart.Name = "buttonStart";
this.buttonStart.Size = new System.Drawing.Size(64, 21);
this.buttonStart.TabIndex = 0;
this.buttonStart.Text = "开始";
this.buttonStart.UseVisualStyleBackColor = true;
this.buttonStart.Click += new System.EventHandler(this.button1_Click);
//
// richTextBoxStat
//
this.richTextBoxStat.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.richTextBoxStat.Location = new System.Drawing.Point(14, 32);
this.richTextBoxStat.Name = "richTextBoxStat";
this.richTextBoxStat.Size = new System.Drawing.Size(580, 231);
this.richTextBoxStat.TabIndex = 1;
this.richTextBoxStat.Text = "";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(12, 9);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(53, 12);
this.label1.TabIndex = 2;
this.label1.Text = "迭代上限";
//
// textBoxMax
//
this.textBoxMax.Location = new System.Drawing.Point(71, 5);
this.textBoxMax.Name = "textBoxMax";
this.textBoxMax.Size = new System.Drawing.Size(40, 21);
this.textBoxMax.TabIndex = 3;
this.textBoxMax.Text = "500";
//
// textBoxCrossRate
//
this.textBoxCrossRate.Location = new System.Drawing.Point(278, 5);
this.textBoxCrossRate.Name = "textBoxCrossRate";
this.textBoxCrossRate.Size = new System.Drawing.Size(34, 21);
this.textBoxCrossRate.TabIndex = 5;
this.textBoxCrossRate.Text = "0.5";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(219, 9);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(53, 12);
this.label2.TabIndex = 4;
this.label2.Text = "交叉概率";
//
// textBoxVarRate
//
this.textBoxVarRate.Location = new System.Drawing.Point(377, 5);
this.textBoxVarRate.Name = "textBoxVarRate";
this.textBoxVarRate.Size = new System.Drawing.Size(31, 21);
this.textBoxVarRate.TabIndex = 7;
this.textBoxVarRate.Text = "0.3";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(318, 9);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(53, 12);
this.label3.TabIndex = 6;
this.label3.Text = "变异概率";
//
// textBoxPopulationNum
//
this.textBoxPopulationNum.Location = new System.Drawing.Point(176, 5);
this.textBoxPopulationNum.Name = "textBoxPopulationNum";
this.textBoxPopulationNum.Size = new System.Drawing.Size(37, 21);
this.textBoxPopulationNum.TabIndex = 9;
this.textBoxPopulationNum.Text = "50";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(117, 9);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(53, 12);
this.label4.TabIndex = 8;
this.label4.Text = "种群大小";
//
// pictureBoxShow
//
this.pictureBoxShow.BackColor = System.Drawing.SystemColors.ControlText;
this.pictureBoxShow.Location = new System.Drawing.Point(14, 269);
this.pictureBoxShow.Name = "pictureBoxShow";
this.pictureBoxShow.Size = new System.Drawing.Size(580, 280);
this.pictureBoxShow.TabIndex = 10;
this.pictureBoxShow.TabStop = false;
//
// FormMain
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(609, 564);
this.Controls.Add(this.pictureBoxShow);
this.Controls.Add(this.textBoxPopulationNum);
this.Controls.Add(this.label4);
this.Controls.Add(this.textBoxVarRate);
this.Controls.Add(this.label3);
this.Controls.Add(this.textBoxCrossRate);
this.Controls.Add(this.label2);
this.Controls.Add(this.textBoxMax);
this.Controls.Add(this.label1);
this.Controls.Add(this.richTextBoxStat);
this.Controls.Add(this.buttonStart);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "FormMain";
this.Text = "遗传算法求函数极值[y=x*sin(10*PI*x)+2.0]";
((System.ComponentModel.ISupportInitialize)(this.pictureBoxShow)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Button buttonStart;
private System.Windows.Forms.RichTextBox richTextBoxStat;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox textBoxMax;
private System.Windows.Forms.TextBox textBoxCrossRate;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox textBoxVarRate;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.TextBox textBoxPopulationNum;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.PictureBox pictureBoxShow;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -