📄 form1.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.IO;
namespace zhuoye
{
/// <summary>
/// Form1 的摘要说明。
/// </summary>
public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.GroupBox groupBox1;
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;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.PictureBox pictureBox4;
private System.Windows.Forms.PictureBox pictureBox5;
private System.Windows.Forms.PictureBox pictureBox6;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.GroupBox groupBox3;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Splitter splitter1;
private System.Data.DataSet ds;
private System.Data.DataTable dataTable1;
private System.Data.DataTable dataTable2;
private System.Windows.Forms.ListBox listBox2;
private System.Windows.Forms.RichTextBox richTextBox1;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.Label label13;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.Label label14;
/// <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 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1));
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.label4 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.pictureBox5 = new System.Windows.Forms.PictureBox();
this.pictureBox6 = new System.Windows.Forms.PictureBox();
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.groupBox2 = new System.Windows.Forms.GroupBox();
this.pictureBox4 = new System.Windows.Forms.PictureBox();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.label10 = new System.Windows.Forms.Label();
this.label11 = new System.Windows.Forms.Label();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.label12 = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.ds = new System.Data.DataSet();
this.dataTable1 = new System.Data.DataTable();
this.dataTable2 = new System.Data.DataTable();
this.splitter1 = new System.Windows.Forms.Splitter();
this.listBox2 = new System.Windows.Forms.ListBox();
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.button3 = new System.Windows.Forms.Button();
this.label13 = new System.Windows.Forms.Label();
this.textBox2 = new System.Windows.Forms.TextBox();
this.label14 = new System.Windows.Forms.Label();
this.groupBox1.SuspendLayout();
this.groupBox2.SuspendLayout();
this.groupBox3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.ds)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dataTable1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dataTable2)).BeginInit();
this.SuspendLayout();
//
// groupBox1
//
this.groupBox1.Controls.Add(this.label4);
this.groupBox1.Controls.Add(this.label3);
this.groupBox1.Controls.Add(this.label2);
this.groupBox1.Controls.Add(this.label1);
this.groupBox1.Controls.Add(this.pictureBox5);
this.groupBox1.Controls.Add(this.pictureBox6);
this.groupBox1.Location = new System.Drawing.Point(16, 8);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(168, 144);
this.groupBox1.TabIndex = 0;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "矩阵A";
//
// label4
//
this.label4.Location = new System.Drawing.Point(24, 112);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(120, 23);
this.label4.TabIndex = 3;
this.label4.Text = " 1 -4";
//
// label3
//
this.label3.Location = new System.Drawing.Point(32, 72);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(104, 23);
this.label3.TabIndex = 2;
this.label3.Text = "..........";
//
// label2
//
this.label2.Location = new System.Drawing.Point(24, 40);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(112, 23);
this.label2.TabIndex = 1;
this.label2.Text = "1 -4 1";
//
// label1
//
this.label1.Location = new System.Drawing.Point(24, 16);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(120, 23);
this.label1.TabIndex = 0;
this.label1.Text = "-4 1";
//
// pictureBox5
//
this.pictureBox5.BackColor = System.Drawing.Color.Transparent;
this.pictureBox5.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox5.Image")));
this.pictureBox5.Location = new System.Drawing.Point(8, 16);
this.pictureBox5.Name = "pictureBox5";
this.pictureBox5.Size = new System.Drawing.Size(16, 120);
this.pictureBox5.TabIndex = 8;
this.pictureBox5.TabStop = false;
//
// pictureBox6
//
this.pictureBox6.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox6.Image")));
this.pictureBox6.Location = new System.Drawing.Point(144, 16);
this.pictureBox6.Name = "pictureBox6";
this.pictureBox6.Size = new System.Drawing.Size(16, 120);
this.pictureBox6.TabIndex = 0;
this.pictureBox6.TabStop = false;
//
// label5
//
this.label5.Location = new System.Drawing.Point(24, 16);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(24, 16);
this.label5.TabIndex = 1;
this.label5.Text = "-3";
//
// label6
//
this.label6.Location = new System.Drawing.Point(24, 40);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(24, 16);
this.label6.TabIndex = 2;
this.label6.Text = "-2";
//
// label7
//
this.label7.Location = new System.Drawing.Point(24, 64);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(24, 16);
this.label7.TabIndex = 3;
this.label7.Text = ".....";
//
// label8
//
this.label8.Location = new System.Drawing.Point(24, 88);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(24, 16);
this.label8.TabIndex = 4;
this.label8.Text = "-2";
//
// label9
//
this.label9.Location = new System.Drawing.Point(24, 112);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(24, 16);
this.label9.TabIndex = 5;
this.label9.Text = "-3";
//
// groupBox2
//
this.groupBox2.Controls.Add(this.label7);
this.groupBox2.Controls.Add(this.label8);
this.groupBox2.Controls.Add(this.label9);
this.groupBox2.Controls.Add(this.label5);
this.groupBox2.Controls.Add(this.label6);
this.groupBox2.Controls.Add(this.pictureBox4);
this.groupBox2.Controls.Add(this.pictureBox1);
this.groupBox2.Location = new System.Drawing.Point(232, 8);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(72, 144);
this.groupBox2.TabIndex = 6;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "b";
//
// pictureBox4
//
this.pictureBox4.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox4.Image")));
this.pictureBox4.Location = new System.Drawing.Point(48, 16);
this.pictureBox4.Name = "pictureBox4";
this.pictureBox4.Size = new System.Drawing.Size(16, 120);
this.pictureBox4.TabIndex = 0;
this.pictureBox4.TabStop = false;
//
// pictureBox1
//
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
this.pictureBox1.Location = new System.Drawing.Point(8, 16);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(16, 120);
this.pictureBox1.TabIndex = 8;
this.pictureBox1.TabStop = false;
//
// label10
//
this.label10.Font = new System.Drawing.Font("方正舒体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.label10.Location = new System.Drawing.Point(192, 64);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(40, 32);
this.label10.TabIndex = 7;
this.label10.Text = "x=";
//
// label11
//
this.label11.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.label11.Location = new System.Drawing.Point(312, 120);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(72, 32);
this.label11.TabIndex = 8;
this.label11.Text = "AX=B";
//
// groupBox3
//
this.groupBox3.Controls.Add(this.textBox2);
this.groupBox3.Controls.Add(this.label13);
this.groupBox3.Controls.Add(this.label12);
this.groupBox3.Controls.Add(this.textBox1);
this.groupBox3.Location = new System.Drawing.Point(320, 16);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(304, 88);
this.groupBox3.TabIndex = 9;
this.groupBox3.TabStop = false;
this.groupBox3.Text = "相关数据区";
//
// label12
//
this.label12.Location = new System.Drawing.Point(32, 24);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(128, 23);
this.label12.TabIndex = 1;
this.label12.Text = "请输入 N值(阶数):";
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(176, 16);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(56, 21);
this.textBox1.TabIndex = 0;
this.textBox1.Text = "10";
//
// button1
//
this.button1.Location = new System.Drawing.Point(440, 128);
this.button1.Name = "button1";
this.button1.TabIndex = 10;
this.button1.Text = "运算输出";
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// button2
//
this.button2.DialogResult = System.Windows.Forms.DialogResult.OK;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -