📄 gagenomesetting.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace expert
{
/// <summary>
/// GAGEnomeSetting 的摘要说明。
/// </summary>
public class GAGEnomeSetting : System.Windows.Forms.Form
{
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label8;
public System.Windows.Forms.Label label9;
private System.Windows.Forms.TextBox GAWidth;
private System.Windows.Forms.TextBox AdvisorBitScore;
private System.Windows.Forms.TextBox TargetBitScore;
private System.Windows.Forms.TextBox NegativeBitScore;
private System.Windows.Forms.TextBox FullMatchScoreCoeff;
private System.Windows.Forms.TextBox NnGenerations;
private System.Windows.Forms.TextBox ProgressStep;
private System.Windows.Forms.TextBox NpopulationSize;
private System.Windows.Forms.TextBox NnBestGenomes;
private System.Windows.Forms.Button OK;
private System.Windows.Forms.Button Cancel;
private System.Windows.Forms.Label label10;
public System.Windows.Forms.TextBox resultindexbase;
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;
public GAGEnomeSetting()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
//
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
//
}
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows Form Designer generated code
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
this.GAWidth = new System.Windows.Forms.TextBox();
this.AdvisorBitScore = new System.Windows.Forms.TextBox();
this.TargetBitScore = new System.Windows.Forms.TextBox();
this.NegativeBitScore = new System.Windows.Forms.TextBox();
this.FullMatchScoreCoeff = new System.Windows.Forms.TextBox();
this.NnGenerations = new System.Windows.Forms.TextBox();
this.ProgressStep = new System.Windows.Forms.TextBox();
this.NpopulationSize = new System.Windows.Forms.TextBox();
this.NnBestGenomes = new System.Windows.Forms.TextBox();
this.OK = new System.Windows.Forms.Button();
this.Cancel = new System.Windows.Forms.Button();
this.label10 = new System.Windows.Forms.Label();
this.resultindexbase = new System.Windows.Forms.TextBox();
this.SuspendLayout();
//
// label1
//
this.label1.Location = new System.Drawing.Point(16, 21);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(216, 17);
this.label1.TabIndex = 0;
this.label1.Text = "单参基因编码长度";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// label2
//
this.label2.Location = new System.Drawing.Point(16, 66);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(216, 17);
this.label2.TabIndex = 1;
this.label2.Text = "目标样本的基因位赋分";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// label3
//
this.label3.Location = new System.Drawing.Point(16, 113);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(216, 15);
this.label3.TabIndex = 2;
this.label3.Text = "同类样本的基因位赋分";
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// label4
//
this.label4.Location = new System.Drawing.Point(16, 155);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(216, 18);
this.label4.TabIndex = 3;
this.label4.Text = "异类样本的基因位赋分";
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// label5
//
this.label5.Location = new System.Drawing.Point(16, 202);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(216, 16);
this.label5.TabIndex = 4;
this.label5.Text = "完全匹配赋分系数";
this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// label6
//
this.label6.Location = new System.Drawing.Point(16, 246);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(216, 17);
this.label6.TabIndex = 5;
this.label6.Text = "目标世代数";
this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// label7
//
this.label7.Location = new System.Drawing.Point(16, 290);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(216, 18);
this.label7.TabIndex = 6;
this.label7.Text = "报告世代频率";
this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// label8
//
this.label8.Location = new System.Drawing.Point(16, 336);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(216, 17);
this.label8.TabIndex = 7;
this.label8.Text = "种群大小";
this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// label9
//
this.label9.Location = new System.Drawing.Point(16, 373);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(216, 25);
this.label9.TabIndex = 8;
this.label9.Text = "单样本产生模板数";
this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// GAWidth
//
this.GAWidth.Location = new System.Drawing.Point(256, 16);
this.GAWidth.Name = "GAWidth";
this.GAWidth.Size = new System.Drawing.Size(72, 22);
this.GAWidth.TabIndex = 9;
this.GAWidth.Text = "GAWidth";
//
// AdvisorBitScore
//
this.AdvisorBitScore.Location = new System.Drawing.Point(256, 106);
this.AdvisorBitScore.Name = "AdvisorBitScore";
this.AdvisorBitScore.Size = new System.Drawing.Size(72, 22);
this.AdvisorBitScore.TabIndex = 9;
this.AdvisorBitScore.Text = "AdvisorBitScore";
//
// TargetBitScore
//
this.TargetBitScore.Location = new System.Drawing.Point(256, 61);
this.TargetBitScore.Name = "TargetBitScore";
this.TargetBitScore.Size = new System.Drawing.Size(72, 22);
this.TargetBitScore.TabIndex = 9;
this.TargetBitScore.Text = "TargetBitScore";
//
// NegativeBitScore
//
this.NegativeBitScore.Location = new System.Drawing.Point(256, 151);
this.NegativeBitScore.Name = "NegativeBitScore";
this.NegativeBitScore.Size = new System.Drawing.Size(72, 22);
this.NegativeBitScore.TabIndex = 9;
this.NegativeBitScore.Text = "NegativeBitScore";
//
// FullMatchScoreCoeff
//
this.FullMatchScoreCoeff.Location = new System.Drawing.Point(256, 196);
this.FullMatchScoreCoeff.Name = "FullMatchScoreCoeff";
this.FullMatchScoreCoeff.Size = new System.Drawing.Size(72, 22);
this.FullMatchScoreCoeff.TabIndex = 9;
this.FullMatchScoreCoeff.Text = "FullMatchScoreCoeff";
//
// NnGenerations
//
this.NnGenerations.Location = new System.Drawing.Point(256, 241);
this.NnGenerations.Name = "NnGenerations";
this.NnGenerations.Size = new System.Drawing.Size(72, 22);
this.NnGenerations.TabIndex = 9;
this.NnGenerations.Text = "NnGenerations";
//
// ProgressStep
//
this.ProgressStep.Location = new System.Drawing.Point(256, 286);
this.ProgressStep.Name = "ProgressStep";
this.ProgressStep.Size = new System.Drawing.Size(72, 22);
this.ProgressStep.TabIndex = 9;
this.ProgressStep.Text = "ProgressStep";
//
// NpopulationSize
//
this.NpopulationSize.Location = new System.Drawing.Point(256, 331);
this.NpopulationSize.Name = "NpopulationSize";
this.NpopulationSize.Size = new System.Drawing.Size(72, 22);
this.NpopulationSize.TabIndex = 9;
this.NpopulationSize.Text = "NpopulationSize";
//
// NnBestGenomes
//
this.NnBestGenomes.Location = new System.Drawing.Point(256, 376);
this.NnBestGenomes.Name = "NnBestGenomes";
this.NnBestGenomes.Size = new System.Drawing.Size(72, 22);
this.NnBestGenomes.TabIndex = 9;
this.NnBestGenomes.Text = "NnBestGenomes";
//
// OK
//
this.OK.DialogResult = System.Windows.Forms.DialogResult.OK;
this.OK.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.OK.Location = new System.Drawing.Point(80, 464);
this.OK.Name = "OK";
this.OK.Size = new System.Drawing.Size(88, 32);
this.OK.TabIndex = 10;
this.OK.Text = "确定";
//
// Cancel
//
this.Cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.Cancel.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.Cancel.Location = new System.Drawing.Point(200, 464);
this.Cancel.Name = "Cancel";
this.Cancel.Size = new System.Drawing.Size(96, 32);
this.Cancel.TabIndex = 11;
this.Cancel.Text = "放弃";
//
// label10
//
this.label10.Location = new System.Drawing.Point(16, 426);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(216, 17);
this.label10.TabIndex = 12;
this.label10.Text = "结果模板的序号的编码基数";
this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// resultindexbase
//
this.resultindexbase.Location = new System.Drawing.Point(256, 421);
this.resultindexbase.Name = "resultindexbase";
this.resultindexbase.Size = new System.Drawing.Size(72, 22);
this.resultindexbase.TabIndex = 13;
this.resultindexbase.Text = "1000";
//
// GAGEnomeSetting
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 15);
this.ClientSize = new System.Drawing.Size(344, 504);
this.Controls.Add(this.resultindexbase);
this.Controls.Add(this.GAWidth);
this.Controls.Add(this.AdvisorBitScore);
this.Controls.Add(this.TargetBitScore);
this.Controls.Add(this.NegativeBitScore);
this.Controls.Add(this.FullMatchScoreCoeff);
this.Controls.Add(this.NnGenerations);
this.Controls.Add(this.ProgressStep);
this.Controls.Add(this.NpopulationSize);
this.Controls.Add(this.NnBestGenomes);
this.Controls.Add(this.label10);
this.Controls.Add(this.Cancel);
this.Controls.Add(this.OK);
this.Controls.Add(this.label9);
this.Controls.Add(this.label8);
this.Controls.Add(this.label7);
this.Controls.Add(this.label6);
this.Controls.Add(this.label5);
this.Controls.Add(this.label4);
this.Controls.Add(this.label3);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Name = "GAGEnomeSetting";
this.Text = "GAGEnomeSetting";
this.Load += new System.EventHandler(this.GAGEnomeSetting_Load);
this.ResumeLayout(false);
}
#endregion
private void GAGEnomeSetting_Load(object sender, System.EventArgs e)
{
}
public int nGAWidth
{
get
{
return Convert.ToInt16(GAWidth.Text);
}
set
{
GAWidth.Text=value.ToString();
}
}
public int nPopulationSize
{
get
{
return Convert.ToInt16(NpopulationSize.Text);
}
set
{
NpopulationSize.Text=value.ToString();
}
}
public int nProgressStep
{
get
{
return Convert.ToInt16(ProgressStep.Text);
}
set
{
ProgressStep.Text=value.ToString();
}
}
public int nBestGenomes
{
get
{
return Convert.ToInt16(NnBestGenomes.Text);
}
set
{
NnBestGenomes.Text=value.ToString();
}
}
public float fFullMatchScoreCoeff
{
get
{
return Convert.ToSingle(FullMatchScoreCoeff.Text);
}
set
{
FullMatchScoreCoeff.Text=value.ToString();
}
}
public int nGenerations
{
get
{
return Convert.ToInt16(NnGenerations.Text);
}
set
{
NnGenerations.Text=value.ToString();
}
}
public float fNegativeBitScore
{
get
{
return Convert.ToSingle(NegativeBitScore.Text);
}
set
{
NegativeBitScore.Text=value.ToString();
}
}
public float fTargetBitScore
{
get
{
return Convert.ToSingle(TargetBitScore.Text);
}
set
{
TargetBitScore.Text=value.ToString();
}
}
public float fAdvisorBitScore
{
get
{
return Convert.ToSingle(AdvisorBitScore.Text);
}
set
{
AdvisorBitScore.Text=value.ToString();
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -