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

📄 form1.cs

📁 我写的仿射程序
💻 CS
📖 第 1 页 / 共 2 页
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;

namespace AffineTransform
{
	/// <summary>
	/// Form1 的摘要说明。
	/// </summary>
	public class Form1 : System.Windows.Forms.Form
	{
		private System.Windows.Forms.GroupBox groupBox1;
		private System.Windows.Forms.GroupBox groupBox2;
		private System.Windows.Forms.GroupBox groupBox3;
		private System.Windows.Forms.MainMenu mainMenu1;
		private System.Windows.Forms.MenuItem menuItem1;
		private System.Windows.Forms.MenuItem menuItem3;
		private System.Windows.Forms.MenuItem menuItem5;
		/// <summary>
		/// 必需的设计器变量。
		/// </summary>
		private System.ComponentModel.Container components = null;

		public bool IsBull ;
		
		private System.Windows.Forms.MenuItem menuItem2;
		public bool isaffirm ;

		public double[,] a;   
		public double[] b;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.TextBox textBox1;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.TextBox textBox2;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.TextBox textBox3;
		private System.Windows.Forms.TextBox textBox4;
		private System.Windows.Forms.TextBox textBox5;
		private System.Windows.Forms.TextBox textBox6;
		private System.Windows.Forms.TextBox textBox7;
		private System.Windows.Forms.TextBox textBox8;
		private System.Windows.Forms.TextBox textBox9;
		private System.Windows.Forms.TextBox textBox10;
		private System.Windows.Forms.Label label5;
		private System.Windows.Forms.Label label6;
		private System.Windows.Forms.TextBox textBox11;
		private System.Windows.Forms.TextBox textBox12;
		private System.Windows.Forms.TextBox textBox13;
		private System.Windows.Forms.TextBox textBox14;
		private System.Windows.Forms.TextBox textBox15;
		private System.Windows.Forms.TextBox textBox16;
		private System.Windows.Forms.TextBox textBox17;
		private System.Windows.Forms.TextBox textBox18;
		private System.Windows.Forms.Label label7;
		private System.Windows.Forms.Label label8;
		private System.Windows.Forms.Label label9;
		private System.Windows.Forms.Label label10;
		private System.Windows.Forms.Label label11;
		private System.Windows.Forms.Label label12;
		private System.Windows.Forms.Label label13;
		private System.Windows.Forms.MenuItem menuItem4;
		public double[] x;

		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()
		{
			this.groupBox1 = new System.Windows.Forms.GroupBox();
			this.label9 = new System.Windows.Forms.Label();
			this.label8 = new System.Windows.Forms.Label();
			this.label7 = new System.Windows.Forms.Label();
			this.textBox14 = new System.Windows.Forms.TextBox();
			this.textBox13 = new System.Windows.Forms.TextBox();
			this.textBox12 = new System.Windows.Forms.TextBox();
			this.textBox11 = new System.Windows.Forms.TextBox();
			this.label6 = new System.Windows.Forms.Label();
			this.textBox2 = new System.Windows.Forms.TextBox();
			this.label2 = new System.Windows.Forms.Label();
			this.textBox1 = new System.Windows.Forms.TextBox();
			this.label1 = new System.Windows.Forms.Label();
			this.groupBox2 = new System.Windows.Forms.GroupBox();
			this.label13 = new System.Windows.Forms.Label();
			this.label12 = new System.Windows.Forms.Label();
			this.label11 = new System.Windows.Forms.Label();
			this.label10 = new System.Windows.Forms.Label();
			this.textBox18 = new System.Windows.Forms.TextBox();
			this.textBox17 = new System.Windows.Forms.TextBox();
			this.textBox16 = new System.Windows.Forms.TextBox();
			this.textBox15 = new System.Windows.Forms.TextBox();
			this.textBox4 = new System.Windows.Forms.TextBox();
			this.textBox3 = new System.Windows.Forms.TextBox();
			this.label4 = new System.Windows.Forms.Label();
			this.label3 = new System.Windows.Forms.Label();
			this.groupBox3 = new System.Windows.Forms.GroupBox();
			this.label5 = new System.Windows.Forms.Label();
			this.textBox10 = new System.Windows.Forms.TextBox();
			this.textBox9 = new System.Windows.Forms.TextBox();
			this.textBox8 = new System.Windows.Forms.TextBox();
			this.textBox7 = new System.Windows.Forms.TextBox();
			this.textBox6 = new System.Windows.Forms.TextBox();
			this.textBox5 = new System.Windows.Forms.TextBox();
			this.mainMenu1 = new System.Windows.Forms.MainMenu();
			this.menuItem1 = new System.Windows.Forms.MenuItem();
			this.menuItem3 = new System.Windows.Forms.MenuItem();
			this.menuItem2 = new System.Windows.Forms.MenuItem();
			this.menuItem5 = new System.Windows.Forms.MenuItem();
			this.menuItem4 = new System.Windows.Forms.MenuItem();
			this.groupBox1.SuspendLayout();
			this.groupBox2.SuspendLayout();
			this.groupBox3.SuspendLayout();
			this.SuspendLayout();
			// 
			// groupBox1
			// 
			this.groupBox1.Controls.Add(this.label9);
			this.groupBox1.Controls.Add(this.label8);
			this.groupBox1.Controls.Add(this.label7);
			this.groupBox1.Controls.Add(this.textBox14);
			this.groupBox1.Controls.Add(this.textBox13);
			this.groupBox1.Controls.Add(this.textBox12);
			this.groupBox1.Controls.Add(this.textBox11);
			this.groupBox1.Controls.Add(this.label6);
			this.groupBox1.Controls.Add(this.textBox2);
			this.groupBox1.Controls.Add(this.label2);
			this.groupBox1.Controls.Add(this.textBox1);
			this.groupBox1.Controls.Add(this.label1);
			this.groupBox1.Location = new System.Drawing.Point(8, 24);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new System.Drawing.Size(312, 240);
			this.groupBox1.TabIndex = 0;
			this.groupBox1.TabStop = false;
			this.groupBox1.Text = "当前坐标";
			// 
			// label9
			// 
			this.label9.Location = new System.Drawing.Point(32, 192);
			this.label9.Name = "label9";
			this.label9.Size = new System.Drawing.Size(56, 16);
			this.label9.TabIndex = 11;
			this.label9.Text = "y3:";
			// 
			// label8
			// 
			this.label8.Location = new System.Drawing.Point(32, 160);
			this.label8.Name = "label8";
			this.label8.Size = new System.Drawing.Size(48, 16);
			this.label8.TabIndex = 10;
			this.label8.Text = "x3:";
			// 
			// label7
			// 
			this.label7.Location = new System.Drawing.Point(32, 120);
			this.label7.Name = "label7";
			this.label7.Size = new System.Drawing.Size(64, 24);
			this.label7.TabIndex = 9;
			this.label7.Text = "y2:";
			// 
			// textBox14
			// 
			this.textBox14.Location = new System.Drawing.Point(104, 192);
			this.textBox14.Name = "textBox14";
			this.textBox14.Size = new System.Drawing.Size(152, 21);
			this.textBox14.TabIndex = 8;
			this.textBox14.Text = "104.325";
			// 
			// textBox13
			// 
			this.textBox13.Location = new System.Drawing.Point(104, 160);
			this.textBox13.Name = "textBox13";
			this.textBox13.Size = new System.Drawing.Size(152, 21);
			this.textBox13.TabIndex = 7;
			this.textBox13.Text = "102.211";
			// 
			// textBox12
			// 
			this.textBox12.Location = new System.Drawing.Point(104, 120);
			this.textBox12.Name = "textBox12";
			this.textBox12.Size = new System.Drawing.Size(152, 21);
			this.textBox12.TabIndex = 6;
			this.textBox12.Text = "3.2145";
			// 
			// textBox11
			// 
			this.textBox11.Location = new System.Drawing.Point(104, 88);
			this.textBox11.Name = "textBox11";
			this.textBox11.Size = new System.Drawing.Size(152, 21);
			this.textBox11.TabIndex = 5;
			this.textBox11.Text = "0.4528";
			// 
			// label6
			// 
			this.label6.Location = new System.Drawing.Point(32, 88);
			this.label6.Name = "label6";
			this.label6.Size = new System.Drawing.Size(48, 24);
			this.label6.TabIndex = 4;
			this.label6.Text = "x2:";
			// 
			// textBox2
			// 
			this.textBox2.Location = new System.Drawing.Point(104, 56);
			this.textBox2.Name = "textBox2";
			this.textBox2.Size = new System.Drawing.Size(152, 21);
			this.textBox2.TabIndex = 3;
			this.textBox2.Text = "15.2441";
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(32, 56);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(48, 24);
			this.label2.TabIndex = 2;
			this.label2.Text = "y1:";
			// 
			// textBox1
			// 
			this.textBox1.Location = new System.Drawing.Point(104, 24);
			this.textBox1.Name = "textBox1";
			this.textBox1.Size = new System.Drawing.Size(152, 21);
			this.textBox1.TabIndex = 1;
			this.textBox1.Text = "12.2357";
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(32, 24);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(40, 24);
			this.label1.TabIndex = 0;
			this.label1.Text = "x1:";
			// 
			// groupBox2
			// 
			this.groupBox2.Controls.Add(this.label13);
			this.groupBox2.Controls.Add(this.label12);
			this.groupBox2.Controls.Add(this.label11);
			this.groupBox2.Controls.Add(this.label10);
			this.groupBox2.Controls.Add(this.textBox18);
			this.groupBox2.Controls.Add(this.textBox17);
			this.groupBox2.Controls.Add(this.textBox16);
			this.groupBox2.Controls.Add(this.textBox15);
			this.groupBox2.Controls.Add(this.textBox4);
			this.groupBox2.Controls.Add(this.textBox3);
			this.groupBox2.Controls.Add(this.label4);
			this.groupBox2.Controls.Add(this.label3);
			this.groupBox2.Location = new System.Drawing.Point(336, 24);
			this.groupBox2.Name = "groupBox2";
			this.groupBox2.Size = new System.Drawing.Size(344, 240);
			this.groupBox2.TabIndex = 1;
			this.groupBox2.TabStop = false;
			this.groupBox2.Text = "目的坐标";
			// 
			// label13
			// 
			this.label13.Location = new System.Drawing.Point(40, 192);
			this.label13.Name = "label13";
			this.label13.Size = new System.Drawing.Size(72, 24);
			this.label13.TabIndex = 11;
			this.label13.Text = "yy3:";
			// 
			// label12
			// 
			this.label12.Location = new System.Drawing.Point(40, 160);
			this.label12.Name = "label12";
			this.label12.Size = new System.Drawing.Size(72, 24);
			this.label12.TabIndex = 10;
			this.label12.Text = "xx3:";
			// 
			// label11
			// 
			this.label11.Location = new System.Drawing.Point(40, 128);
			this.label11.Name = "label11";
			this.label11.Size = new System.Drawing.Size(64, 24);
			this.label11.TabIndex = 9;
			this.label11.Text = "yy2:";
			// 
			// label10
			// 
			this.label10.Location = new System.Drawing.Point(40, 96);
			this.label10.Name = "label10";
			this.label10.Size = new System.Drawing.Size(64, 16);
			this.label10.TabIndex = 8;
			this.label10.Text = "xx2:";
			// 
			// textBox18
			// 
			this.textBox18.Location = new System.Drawing.Point(144, 192);
			this.textBox18.Name = "textBox18";
			this.textBox18.Size = new System.Drawing.Size(152, 21);
			this.textBox18.TabIndex = 7;
			this.textBox18.Text = "";
			// 
			// textBox17
			// 
			this.textBox17.Location = new System.Drawing.Point(144, 160);
			this.textBox17.Name = "textBox17";
			this.textBox17.Size = new System.Drawing.Size(152, 21);
			this.textBox17.TabIndex = 6;
			this.textBox17.Text = "";
			// 
			// textBox16
			// 
			this.textBox16.Location = new System.Drawing.Point(144, 128);
			this.textBox16.Name = "textBox16";
			this.textBox16.Size = new System.Drawing.Size(152, 21);
			this.textBox16.TabIndex = 5;
			this.textBox16.Text = "";
			// 
			// textBox15
			// 
			this.textBox15.Location = new System.Drawing.Point(144, 96);
			this.textBox15.Name = "textBox15";
			this.textBox15.Size = new System.Drawing.Size(152, 21);
			this.textBox15.TabIndex = 4;
			this.textBox15.Text = "";
			// 
			// textBox4
			// 
			this.textBox4.Location = new System.Drawing.Point(144, 64);
			this.textBox4.Name = "textBox4";
			this.textBox4.Size = new System.Drawing.Size(152, 21);
			this.textBox4.TabIndex = 3;
			this.textBox4.Text = "";
			// 
			// textBox3
			// 
			this.textBox3.Location = new System.Drawing.Point(144, 32);
			this.textBox3.Name = "textBox3";
			this.textBox3.Size = new System.Drawing.Size(152, 21);
			this.textBox3.TabIndex = 2;
			this.textBox3.Text = "";
			// 
			// label4
			// 
			this.label4.Location = new System.Drawing.Point(40, 64);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(64, 16);
			this.label4.TabIndex = 1;
			this.label4.Text = "yy1:";
			// 
			// label3
			// 
			this.label3.Location = new System.Drawing.Point(40, 32);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(64, 24);
			this.label3.TabIndex = 0;
			this.label3.Text = "xx1:";
			// 
			// groupBox3

⌨️ 快捷键说明

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