📄 form1.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
namespace 双序列比对
{
/// <summary>
/// Form1 的摘要说明。
/// </summary>
public class Form1 : 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.TextBox textBox1;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.TextBox textBox3;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.TextBox matrixd;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label optimalalign;
private System.Windows.Forms.TextBox oplign;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.TextBox indent;
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;
public Form1()
{
//
// 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()
{
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1));
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
this.textBox2 = new System.Windows.Forms.TextBox();
this.textBox3 = new System.Windows.Forms.TextBox();
this.button2 = new System.Windows.Forms.Button();
this.button3 = new System.Windows.Forms.Button();
this.button1 = new System.Windows.Forms.Button();
this.matrixd = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.optimalalign = new System.Windows.Forms.Label();
this.oplign = new System.Windows.Forms.TextBox();
this.label5 = new System.Windows.Forms.Label();
this.indent = new System.Windows.Forms.TextBox();
this.SuspendLayout();
//
// label1
//
this.label1.AccessibleDescription = resources.GetString("label1.AccessibleDescription");
this.label1.AccessibleName = resources.GetString("label1.AccessibleName");
this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("label1.Anchor")));
this.label1.AutoSize = ((bool)(resources.GetObject("label1.AutoSize")));
this.label1.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("label1.Dock")));
this.label1.Enabled = ((bool)(resources.GetObject("label1.Enabled")));
this.label1.Font = ((System.Drawing.Font)(resources.GetObject("label1.Font")));
this.label1.Image = ((System.Drawing.Image)(resources.GetObject("label1.Image")));
this.label1.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("label1.ImageAlign")));
this.label1.ImageIndex = ((int)(resources.GetObject("label1.ImageIndex")));
this.label1.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("label1.ImeMode")));
this.label1.Location = ((System.Drawing.Point)(resources.GetObject("label1.Location")));
this.label1.Name = "label1";
this.label1.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("label1.RightToLeft")));
this.label1.Size = ((System.Drawing.Size)(resources.GetObject("label1.Size")));
this.label1.TabIndex = ((int)(resources.GetObject("label1.TabIndex")));
this.label1.Text = resources.GetString("label1.Text");
this.label1.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("label1.TextAlign")));
this.label1.Visible = ((bool)(resources.GetObject("label1.Visible")));
//
// label2
//
this.label2.AccessibleDescription = resources.GetString("label2.AccessibleDescription");
this.label2.AccessibleName = resources.GetString("label2.AccessibleName");
this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("label2.Anchor")));
this.label2.AutoSize = ((bool)(resources.GetObject("label2.AutoSize")));
this.label2.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("label2.Dock")));
this.label2.Enabled = ((bool)(resources.GetObject("label2.Enabled")));
this.label2.Font = ((System.Drawing.Font)(resources.GetObject("label2.Font")));
this.label2.Image = ((System.Drawing.Image)(resources.GetObject("label2.Image")));
this.label2.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("label2.ImageAlign")));
this.label2.ImageIndex = ((int)(resources.GetObject("label2.ImageIndex")));
this.label2.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("label2.ImeMode")));
this.label2.Location = ((System.Drawing.Point)(resources.GetObject("label2.Location")));
this.label2.Name = "label2";
this.label2.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("label2.RightToLeft")));
this.label2.Size = ((System.Drawing.Size)(resources.GetObject("label2.Size")));
this.label2.TabIndex = ((int)(resources.GetObject("label2.TabIndex")));
this.label2.Text = resources.GetString("label2.Text");
this.label2.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("label2.TextAlign")));
this.label2.Visible = ((bool)(resources.GetObject("label2.Visible")));
//
// label3
//
this.label3.AccessibleDescription = resources.GetString("label3.AccessibleDescription");
this.label3.AccessibleName = resources.GetString("label3.AccessibleName");
this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("label3.Anchor")));
this.label3.AutoSize = ((bool)(resources.GetObject("label3.AutoSize")));
this.label3.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("label3.Dock")));
this.label3.Enabled = ((bool)(resources.GetObject("label3.Enabled")));
this.label3.Font = ((System.Drawing.Font)(resources.GetObject("label3.Font")));
this.label3.Image = ((System.Drawing.Image)(resources.GetObject("label3.Image")));
this.label3.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("label3.ImageAlign")));
this.label3.ImageIndex = ((int)(resources.GetObject("label3.ImageIndex")));
this.label3.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("label3.ImeMode")));
this.label3.Location = ((System.Drawing.Point)(resources.GetObject("label3.Location")));
this.label3.Name = "label3";
this.label3.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("label3.RightToLeft")));
this.label3.Size = ((System.Drawing.Size)(resources.GetObject("label3.Size")));
this.label3.TabIndex = ((int)(resources.GetObject("label3.TabIndex")));
this.label3.Text = resources.GetString("label3.Text");
this.label3.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("label3.TextAlign")));
this.label3.Visible = ((bool)(resources.GetObject("label3.Visible")));
this.label3.Click += new System.EventHandler(this.label3_Click);
//
// textBox1
//
this.textBox1.AccessibleDescription = resources.GetString("textBox1.AccessibleDescription");
this.textBox1.AccessibleName = resources.GetString("textBox1.AccessibleName");
this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("textBox1.Anchor")));
this.textBox1.AutoSize = ((bool)(resources.GetObject("textBox1.AutoSize")));
this.textBox1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("textBox1.BackgroundImage")));
this.textBox1.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("textBox1.Dock")));
this.textBox1.Enabled = ((bool)(resources.GetObject("textBox1.Enabled")));
this.textBox1.Font = ((System.Drawing.Font)(resources.GetObject("textBox1.Font")));
this.textBox1.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("textBox1.ImeMode")));
this.textBox1.Location = ((System.Drawing.Point)(resources.GetObject("textBox1.Location")));
this.textBox1.MaxLength = ((int)(resources.GetObject("textBox1.MaxLength")));
this.textBox1.Multiline = ((bool)(resources.GetObject("textBox1.Multiline")));
this.textBox1.Name = "textBox1";
this.textBox1.PasswordChar = ((char)(resources.GetObject("textBox1.PasswordChar")));
this.textBox1.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("textBox1.RightToLeft")));
this.textBox1.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("textBox1.ScrollBars")));
this.textBox1.Size = ((System.Drawing.Size)(resources.GetObject("textBox1.Size")));
this.textBox1.TabIndex = ((int)(resources.GetObject("textBox1.TabIndex")));
this.textBox1.Text = resources.GetString("textBox1.Text");
this.textBox1.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("textBox1.TextAlign")));
this.textBox1.Visible = ((bool)(resources.GetObject("textBox1.Visible")));
this.textBox1.WordWrap = ((bool)(resources.GetObject("textBox1.WordWrap")));
//
// textBox2
//
this.textBox2.AccessibleDescription = resources.GetString("textBox2.AccessibleDescription");
this.textBox2.AccessibleName = resources.GetString("textBox2.AccessibleName");
this.textBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("textBox2.Anchor")));
this.textBox2.AutoSize = ((bool)(resources.GetObject("textBox2.AutoSize")));
this.textBox2.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("textBox2.BackgroundImage")));
this.textBox2.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("textBox2.Dock")));
this.textBox2.Enabled = ((bool)(resources.GetObject("textBox2.Enabled")));
this.textBox2.Font = ((System.Drawing.Font)(resources.GetObject("textBox2.Font")));
this.textBox2.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("textBox2.ImeMode")));
this.textBox2.Location = ((System.Drawing.Point)(resources.GetObject("textBox2.Location")));
this.textBox2.MaxLength = ((int)(resources.GetObject("textBox2.MaxLength")));
this.textBox2.Multiline = ((bool)(resources.GetObject("textBox2.Multiline")));
this.textBox2.Name = "textBox2";
this.textBox2.PasswordChar = ((char)(resources.GetObject("textBox2.PasswordChar")));
this.textBox2.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("textBox2.RightToLeft")));
this.textBox2.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("textBox2.ScrollBars")));
this.textBox2.Size = ((System.Drawing.Size)(resources.GetObject("textBox2.Size")));
this.textBox2.TabIndex = ((int)(resources.GetObject("textBox2.TabIndex")));
this.textBox2.Text = resources.GetString("textBox2.Text");
this.textBox2.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("textBox2.TextAlign")));
this.textBox2.Visible = ((bool)(resources.GetObject("textBox2.Visible")));
this.textBox2.WordWrap = ((bool)(resources.GetObject("textBox2.WordWrap")));
//
// textBox3
//
this.textBox3.AccessibleDescription = resources.GetString("textBox3.AccessibleDescription");
this.textBox3.AccessibleName = resources.GetString("textBox3.AccessibleName");
this.textBox3.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("textBox3.Anchor")));
this.textBox3.AutoSize = ((bool)(resources.GetObject("textBox3.AutoSize")));
this.textBox3.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("textBox3.BackgroundImage")));
this.textBox3.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("textBox3.Dock")));
this.textBox3.Enabled = ((bool)(resources.GetObject("textBox3.Enabled")));
this.textBox3.Font = ((System.Drawing.Font)(resources.GetObject("textBox3.Font")));
this.textBox3.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("textBox3.ImeMode")));
this.textBox3.Location = ((System.Drawing.Point)(resources.GetObject("textBox3.Location")));
this.textBox3.MaxLength = ((int)(resources.GetObject("textBox3.MaxLength")));
this.textBox3.Multiline = ((bool)(resources.GetObject("textBox3.Multiline")));
this.textBox3.Name = "textBox3";
this.textBox3.PasswordChar = ((char)(resources.GetObject("textBox3.PasswordChar")));
this.textBox3.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("textBox3.RightToLeft")));
this.textBox3.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("textBox3.ScrollBars")));
this.textBox3.Size = ((System.Drawing.Size)(resources.GetObject("textBox3.Size")));
this.textBox3.TabIndex = ((int)(resources.GetObject("textBox3.TabIndex")));
this.textBox3.Text = resources.GetString("textBox3.Text");
this.textBox3.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("textBox3.TextAlign")));
this.textBox3.Visible = ((bool)(resources.GetObject("textBox3.Visible")));
this.textBox3.WordWrap = ((bool)(resources.GetObject("textBox3.WordWrap")));
//
// button2
//
this.button2.AccessibleDescription = resources.GetString("button2.AccessibleDescription");
this.button2.AccessibleName = resources.GetString("button2.AccessibleName");
this.button2.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("button2.Anchor")));
this.button2.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("button2.BackgroundImage")));
this.button2.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("button2.Dock")));
this.button2.Enabled = ((bool)(resources.GetObject("button2.Enabled")));
this.button2.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("button2.FlatStyle")));
this.button2.Font = ((System.Drawing.Font)(resources.GetObject("button2.Font")));
this.button2.Image = ((System.Drawing.Image)(resources.GetObject("button2.Image")));
this.button2.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("button2.ImageAlign")));
this.button2.ImageIndex = ((int)(resources.GetObject("button2.ImageIndex")));
this.button2.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("button2.ImeMode")));
this.button2.Location = ((System.Drawing.Point)(resources.GetObject("button2.Location")));
this.button2.Name = "button2";
this.button2.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("button2.RightToLeft")));
this.button2.Size = ((System.Drawing.Size)(resources.GetObject("button2.Size")));
this.button2.TabIndex = ((int)(resources.GetObject("button2.TabIndex")));
this.button2.Text = resources.GetString("button2.Text");
this.button2.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("button2.TextAlign")));
this.button2.Visible = ((bool)(resources.GetObject("button2.Visible")));
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// button3
//
this.button3.AccessibleDescription = resources.GetString("button3.AccessibleDescription");
this.button3.AccessibleName = resources.GetString("button3.AccessibleName");
this.button3.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("button3.Anchor")));
this.button3.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("button3.BackgroundImage")));
this.button3.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("button3.Dock")));
this.button3.Enabled = ((bool)(resources.GetObject("button3.Enabled")));
this.button3.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("button3.FlatStyle")));
this.button3.Font = ((System.Drawing.Font)(resources.GetObject("button3.Font")));
this.button3.Image = ((System.Drawing.Image)(resources.GetObject("button3.Image")));
this.button3.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("button3.ImageAlign")));
this.button3.ImageIndex = ((int)(resources.GetObject("button3.ImageIndex")));
this.button3.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("button3.ImeMode")));
this.button3.Location = ((System.Drawing.Point)(resources.GetObject("button3.Location")));
this.button3.Name = "button3";
this.button3.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("button3.RightToLeft")));
this.button3.Size = ((System.Drawing.Size)(resources.GetObject("button3.Size")));
this.button3.TabIndex = ((int)(resources.GetObject("button3.TabIndex")));
this.button3.Text = resources.GetString("button3.Text");
this.button3.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("button3.TextAlign")));
this.button3.Visible = ((bool)(resources.GetObject("button3.Visible")));
this.button3.Click += new System.EventHandler(this.button3_Click);
//
// button1
//
this.button1.AccessibleDescription = resources.GetString("button1.AccessibleDescription");
this.button1.AccessibleName = resources.GetString("button1.AccessibleName");
this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("button1.Anchor")));
this.button1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("button1.BackgroundImage")));
this.button1.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("button1.Dock")));
this.button1.Enabled = ((bool)(resources.GetObject("button1.Enabled")));
this.button1.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("button1.FlatStyle")));
this.button1.Font = ((System.Drawing.Font)(resources.GetObject("button1.Font")));
this.button1.Image = ((System.Drawing.Image)(resources.GetObject("button1.Image")));
this.button1.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("button1.ImageAlign")));
this.button1.ImageIndex = ((int)(resources.GetObject("button1.ImageIndex")));
this.button1.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("button1.ImeMode")));
this.button1.Location = ((System.Drawing.Point)(resources.GetObject("button1.Location")));
this.button1.Name = "button1";
this.button1.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("button1.RightToLeft")));
this.button1.Size = ((System.Drawing.Size)(resources.GetObject("button1.Size")));
this.button1.TabIndex = ((int)(resources.GetObject("button1.TabIndex")));
this.button1.Text = resources.GetString("button1.Text");
this.button1.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("button1.TextAlign")));
this.button1.Visible = ((bool)(resources.GetObject("button1.Visible")));
this.button1.Click += new System.EventHandler(this.button1_Click);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -