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

📄 form1.cs

📁 This source code is about the basic sorting algorithm implemented in C#. The algorithms included are
💻 CS
📖 第 1 页 / 共 3 页
字号:
			this.label15.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// btInsertion
			// 
			this.btInsertion.BackgroundImage = ((System.Drawing.Bitmap)(resources.GetObject("btInsertion.BackgroundImage")));
			this.btInsertion.Location = new System.Drawing.Point(672, 32);
			this.btInsertion.Name = "btInsertion";
			this.btInsertion.Size = new System.Drawing.Size(72, 24);
			this.btInsertion.TabIndex = 11;
			this.btInsertion.Text = "Start";
			this.btInsertion.Click += new System.EventHandler(this.btInsertion_Click);
			// 
			// label7
			// 
			this.label7.Location = new System.Drawing.Point(8, 80);
			this.label7.Name = "label7";
			this.label7.Size = new System.Drawing.Size(64, 23);
			this.label7.TabIndex = 9;
			this.label7.Text = "Result :";
			this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// label8
			// 
			this.label8.Location = new System.Drawing.Point(8, 56);
			this.label8.Name = "label8";
			this.label8.Size = new System.Drawing.Size(72, 23);
			this.label8.TabIndex = 8;
			this.label8.Text = "End Time :";
			this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// label9
			// 
			this.label9.Location = new System.Drawing.Point(8, 32);
			this.label9.Name = "label9";
			this.label9.Size = new System.Drawing.Size(72, 23);
			this.label9.TabIndex = 7;
			this.label9.Text = "Start Time :";
			this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// lbStart_Insertion
			// 
			this.lbStart_Insertion.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.lbStart_Insertion.Location = new System.Drawing.Point(88, 32);
			this.lbStart_Insertion.Name = "lbStart_Insertion";
			this.lbStart_Insertion.Size = new System.Drawing.Size(176, 23);
			this.lbStart_Insertion.TabIndex = 3;
			this.lbStart_Insertion.Text = "lbStart_Insertion";
			this.lbStart_Insertion.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// lbEnd_Insertion
			// 
			this.lbEnd_Insertion.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.lbEnd_Insertion.Location = new System.Drawing.Point(88, 56);
			this.lbEnd_Insertion.Name = "lbEnd_Insertion";
			this.lbEnd_Insertion.Size = new System.Drawing.Size(176, 23);
			this.lbEnd_Insertion.TabIndex = 2;
			this.lbEnd_Insertion.Text = "lbEnd_Insertion";
			this.lbEnd_Insertion.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// tbResult_Insertion
			// 
			this.tbResult_Insertion.Location = new System.Drawing.Point(88, 80);
			this.tbResult_Insertion.Name = "tbResult_Insertion";
			this.tbResult_Insertion.Size = new System.Drawing.Size(656, 20);
			this.tbResult_Insertion.TabIndex = 4;
			this.tbResult_Insertion.Text = "Result of Insertion Sort";
			// 
			// lbTotal_Insertion
			// 
			this.lbTotal_Insertion.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.lbTotal_Insertion.Location = new System.Drawing.Point(376, 32);
			this.lbTotal_Insertion.Name = "lbTotal_Insertion";
			this.lbTotal_Insertion.Size = new System.Drawing.Size(176, 23);
			this.lbTotal_Insertion.TabIndex = 13;
			this.lbTotal_Insertion.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// plSelection
			// 
			this.plSelection.BackColor = System.Drawing.Color.Transparent;
			this.plSelection.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.plSelection.Controls.AddRange(new System.Windows.Forms.Control[] {
																					  this.label13,
																					  this.btSelection,
																					  this.label3,
																					  this.label2,
																					  this.label1,
																					  this.lbEnd_Selection,
																					  this.lbStart_Selection,
																					  this.tbResult_Selection,
																					  this.lbTotal_Selection,
																					  this.label14});
			this.plSelection.Location = new System.Drawing.Point(24, 184);
			this.plSelection.Name = "plSelection";
			this.plSelection.Size = new System.Drawing.Size(760, 112);
			this.plSelection.TabIndex = 3;
			// 
			// label13
			// 
			this.label13.Location = new System.Drawing.Point(296, 32);
			this.label13.Name = "label13";
			this.label13.Size = new System.Drawing.Size(72, 23);
			this.label13.TabIndex = 14;
			this.label13.Text = "Total Time : ";
			this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// btSelection
			// 
			this.btSelection.BackgroundImage = ((System.Drawing.Bitmap)(resources.GetObject("btSelection.BackgroundImage")));
			this.btSelection.Location = new System.Drawing.Point(672, 32);
			this.btSelection.Name = "btSelection";
			this.btSelection.Size = new System.Drawing.Size(72, 24);
			this.btSelection.TabIndex = 11;
			this.btSelection.Text = "Start";
			this.btSelection.Click += new System.EventHandler(this.btSelection_Click);
			// 
			// label3
			// 
			this.label3.Location = new System.Drawing.Point(16, 80);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(64, 23);
			this.label3.TabIndex = 6;
			this.label3.Text = "Result :";
			this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(16, 56);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(72, 23);
			this.label2.TabIndex = 5;
			this.label2.Text = "End Time :";
			this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(16, 32);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(72, 23);
			this.label1.TabIndex = 4;
			this.label1.Text = "Start Time :";
			this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// lbEnd_Selection
			// 
			this.lbEnd_Selection.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.lbEnd_Selection.Location = new System.Drawing.Point(88, 56);
			this.lbEnd_Selection.Name = "lbEnd_Selection";
			this.lbEnd_Selection.Size = new System.Drawing.Size(176, 23);
			this.lbEnd_Selection.TabIndex = 3;
			this.lbEnd_Selection.Text = "lbEnd_Selection";
			this.lbEnd_Selection.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// lbStart_Selection
			// 
			this.lbStart_Selection.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.lbStart_Selection.Location = new System.Drawing.Point(88, 32);
			this.lbStart_Selection.Name = "lbStart_Selection";
			this.lbStart_Selection.Size = new System.Drawing.Size(176, 23);
			this.lbStart_Selection.TabIndex = 2;
			this.lbStart_Selection.Text = "lbStart_Selection";
			this.lbStart_Selection.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// tbResult_Selection
			// 
			this.tbResult_Selection.Location = new System.Drawing.Point(88, 80);
			this.tbResult_Selection.Name = "tbResult_Selection";
			this.tbResult_Selection.Size = new System.Drawing.Size(656, 20);
			this.tbResult_Selection.TabIndex = 3;
			this.tbResult_Selection.Text = "Result of Selection Sort";
			// 
			// lbTotal_Selection
			// 
			this.lbTotal_Selection.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.lbTotal_Selection.Location = new System.Drawing.Point(376, 32);
			this.lbTotal_Selection.Name = "lbTotal_Selection";
			this.lbTotal_Selection.Size = new System.Drawing.Size(176, 23);
			this.lbTotal_Selection.TabIndex = 13;
			this.lbTotal_Selection.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// label14
			// 
			this.label14.BackColor = System.Drawing.SystemColors.ControlDark;
			this.label14.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
			this.label14.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
			this.label14.Image = ((System.Drawing.Bitmap)(resources.GetObject("label14.Image")));
			this.label14.Name = "label14";
			this.label14.Size = new System.Drawing.Size(760, 23);
			this.label14.TabIndex = 14;
			this.label14.Text = "Selection Sort";
			this.label14.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// btnGenerate
			// 
			this.btnGenerate.BackgroundImage = ((System.Drawing.Bitmap)(resources.GetObject("btnGenerate.BackgroundImage")));
			this.btnGenerate.Location = new System.Drawing.Point(448, 8);
			this.btnGenerate.Name = "btnGenerate";
			this.btnGenerate.Size = new System.Drawing.Size(72, 24);
			this.btnGenerate.TabIndex = 4;
			this.btnGenerate.Text = "Generate";
			this.btnGenerate.Click += new System.EventHandler(this.btnGenerate_Click);
			// 
			// btnStart
			// 
			this.btnStart.BackgroundImage = ((System.Drawing.Bitmap)(resources.GetObject("btnStart.BackgroundImage")));
			this.btnStart.Location = new System.Drawing.Point(528, 8);
			this.btnStart.Name = "btnStart";
			this.btnStart.Size = new System.Drawing.Size(72, 24);
			this.btnStart.TabIndex = 5;
			this.btnStart.Text = "Race";
			this.btnStart.Click += new System.EventHandler(this.btnStart_Click);
			// 
			// tbList
			// 
			this.tbList.BackColor = System.Drawing.Color.Gainsboro;
			this.tbList.Location = new System.Drawing.Point(144, 40);
			this.tbList.Name = "tbList";
			this.tbList.Size = new System.Drawing.Size(640, 20);
			this.tbList.TabIndex = 6;
			this.tbList.Text = "";
			this.tbList.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
			// 
			// label10
			// 
			this.label10.BackColor = System.Drawing.Color.Transparent;
			this.label10.Location = new System.Drawing.Point(16, 24);
			this.label10.Name = "label10";
			this.label10.Size = new System.Drawing.Size(112, 40);
			this.label10.TabIndex = 10;
			this.label10.Text = "Auto Generated Random Integers :";
			this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// lbDelay
			// 
			this.lbDelay.BackColor = System.Drawing.Color.Transparent;
			this.lbDelay.Location = new System.Drawing.Point(232, 8);
			this.lbDelay.Name = "lbDelay";
			this.lbDelay.Size = new System.Drawing.Size(136, 16);
			this.lbDelay.TabIndex = 10;
			this.lbDelay.Text = "Delay  [ 0-500 ms ] :";
			this.lbDelay.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// tbDelay
			// 
			this.tbDelay.Location = new System.Drawing.Point(360, 8);
			this.tbDelay.Name = "tbDelay";
			this.tbDelay.Size = new System.Drawing.Size(56, 20);
			this.tbDelay.TabIndex = 11;
			this.tbDelay.Text = "100";
			// 
			// tbTotal
			// 
			this.tbTotal.Location = new System.Drawing.Point(168, 8);
			this.tbTotal.Name = "tbTotal";
			this.tbTotal.Size = new System.Drawing.Size(56, 20);
			this.tbTotal.TabIndex = 12;
			this.tbTotal.Text = "10";
			// 
			// lbTotal
			// 
			this.lbTotal.BackColor = System.Drawing.Color.Transparent;
			this.lbTotal.Location = new System.Drawing.Point(24, 8);
			this.lbTotal.Name = "lbTotal";
			this.lbTotal.Size = new System.Drawing.Size(144, 16);
			this.lbTotal.TabIndex = 13;
			this.lbTotal.Text = "Total Integers [ 2-50 ] :";
			this.lbTotal.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// textBox1
			// 
			this.textBox1.BackColor = System.Drawing.SystemColors.Info;
			this.textBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.textBox1.Location = new System.Drawing.Point(24, 424);
			this.textBox1.Multiline = true;
			this.textBox1.Name = "textBox1";
			this.textBox1.ReadOnly = true;
			this.textBox1.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
			this.textBox1.Size = new System.Drawing.Size(760, 136);
			this.textBox1.TabIndex = 14;
			this.textBox1.Text = "";
			// 
			// btClear
			// 
			this.btClear.BackgroundImage = ((System.Drawing.Bitmap)(resources.GetObject("btClear.BackgroundImage")));
			this.btClear.Location = new System.Drawing.Point(608, 8);
			this.btClear.Name = "btClear";
			this.btClear.Size = new System.Drawing.Size(72, 24);
			this.btClear.TabIndex = 15;
			this.btClear.Text = "Clear";
			this.btClear.Click += new System.EventHandler(this.btClear_Click);
			// 
			// btClearDisplay
			// 
			this.btClearDisplay.BackgroundImage = ((System.Drawing.Bitmap)(resources.GetObject("btClearDisplay.BackgroundImage")));
			this.btClearDisplay.Location = new System.Drawing.Point(688, 8);
			this.btClearDisplay.Name = "btClearDisplay";
			this.btClearDisplay.Size = new System.Drawing.Size(88, 24);
			this.btClearDisplay.TabIndex = 15;
			this.btClearDisplay.Text = "Clear Text Box";
			this.btClearDisplay.Click += new System.EventHandler(this.btClearDisplay_Click);
			// 
			// Form1
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.BackgroundImage = ((System.Drawing.Bitmap)(resources.GetObject("$this.BackgroundImage")));
			this.ClientSize = new System.Drawing.Size(792, 565);
			this.Controls.AddRange(new System.Windows.Forms.Control[] {
																		  this.btClear,
																		  this.textBox1,
																		  this.lbTotal,
																		  this.tbTotal,
																		  this.tbDelay,
																		  this.tbList,
																		  this.btnStart,

⌨️ 快捷键说明

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