paraform.cs

来自「初学Csharp」· CS 代码 · 共 897 行 · 第 1/3 页

CS
897
字号
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data; 
using System.Data.OleDb;  
using System.IO;

namespace SourceManager
{
	/// <summary>
	/// Summary description for Form1.
	/// </summary>
	public class ParamForm : System.Windows.Forms.Form
	{
		private System.Windows.Forms.TabControl tabControl1;
		private System.Windows.Forms.TabPage tabPage1;
		private System.Windows.Forms.TabPage tabPage2;
		private System.Windows.Forms.TabPage tabPage3;
		private System.Windows.Forms.TabPage tabPage4;
		private System.Windows.Forms.Button button1;
		private System.Windows.Forms.Button button2;
		private System.Windows.Forms.GroupBox groupBox1;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.TextBox textBox1;
		private System.Windows.Forms.TextBox textBox2;
		private System.Windows.Forms.Button button3;
		private System.Windows.Forms.GroupBox groupBox2;
		private System.Windows.Forms.CheckBox checkBox_Add_Plat;
		private System.Windows.Forms.GroupBox groupBox3;
		private System.Windows.Forms.CheckBox checkBox_Add_Class;
		private System.Windows.Forms.Button button4;
		private System.Windows.Forms.TextBox textBox3;
		private System.Windows.Forms.TextBox textBox4;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.GroupBox groupBox4;
		private System.Windows.Forms.GroupBox groupBox5;
		private System.Windows.Forms.GroupBox groupBox6;
		private System.Windows.Forms.CheckBox checkBox1;
		private System.Windows.Forms.TextBox textBox5;
		private System.Windows.Forms.TextBox textBox6;
		private System.Windows.Forms.Label label5;
		private System.Windows.Forms.Label label6;
		private System.Windows.Forms.GroupBox groupBox7;
		private System.Windows.Forms.GroupBox groupBox8;
		private System.Windows.Forms.Button button6;
		private System.Windows.Forms.TextBox textBox7;
		private System.Windows.Forms.TextBox textBox8;
		private System.Windows.Forms.Label label7;
		private System.Windows.Forms.Label label8;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;
    private DataSet dataset;
		private System.Windows.Forms.DataGrid dg_lan;
		private System.Windows.Forms.DataGrid dg_plat;
		private System.Windows.Forms.DataGrid dg_class;
		private System.Windows.Forms.DataGrid dg_form;
		private System.Windows.Forms.CheckBox checkBox_Add_form;
		private System.Windows.Forms.Button buttonAddL;
		private OleDbConnection connection;
		public ParamForm()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();
      dataset=new DataSet(); 
			//
            
			//
			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.tabControl1 = new System.Windows.Forms.TabControl();
			this.tabPage1 = new System.Windows.Forms.TabPage();
			this.groupBox5 = new System.Windows.Forms.GroupBox();
			this.dg_lan = new System.Windows.Forms.DataGrid();
			this.groupBox6 = new System.Windows.Forms.GroupBox();
			this.checkBox1 = new System.Windows.Forms.CheckBox();
			this.buttonAddL = new System.Windows.Forms.Button();
			this.textBox5 = new System.Windows.Forms.TextBox();
			this.textBox6 = new System.Windows.Forms.TextBox();
			this.label5 = new System.Windows.Forms.Label();
			this.label6 = new System.Windows.Forms.Label();
			this.tabPage3 = new System.Windows.Forms.TabPage();
			this.groupBox4 = new System.Windows.Forms.GroupBox();
			this.dg_class = new System.Windows.Forms.DataGrid();
			this.groupBox3 = new System.Windows.Forms.GroupBox();
			this.checkBox_Add_Class = new System.Windows.Forms.CheckBox();
			this.button4 = new System.Windows.Forms.Button();
			this.textBox3 = new System.Windows.Forms.TextBox();
			this.textBox4 = new System.Windows.Forms.TextBox();
			this.label3 = new System.Windows.Forms.Label();
			this.label4 = new System.Windows.Forms.Label();
			this.tabPage2 = new System.Windows.Forms.TabPage();
			this.groupBox2 = new System.Windows.Forms.GroupBox();
			this.dg_plat = new System.Windows.Forms.DataGrid();
			this.groupBox1 = new System.Windows.Forms.GroupBox();
			this.checkBox_Add_Plat = new System.Windows.Forms.CheckBox();
			this.button3 = new System.Windows.Forms.Button();
			this.textBox2 = new System.Windows.Forms.TextBox();
			this.textBox1 = new System.Windows.Forms.TextBox();
			this.label2 = new System.Windows.Forms.Label();
			this.label1 = new System.Windows.Forms.Label();
			this.tabPage4 = new System.Windows.Forms.TabPage();
			this.groupBox7 = new System.Windows.Forms.GroupBox();
			this.dg_form = new System.Windows.Forms.DataGrid();
			this.groupBox8 = new System.Windows.Forms.GroupBox();
			this.checkBox_Add_form = new System.Windows.Forms.CheckBox();
			this.button6 = new System.Windows.Forms.Button();
			this.textBox7 = new System.Windows.Forms.TextBox();
			this.textBox8 = new System.Windows.Forms.TextBox();
			this.label7 = new System.Windows.Forms.Label();
			this.label8 = new System.Windows.Forms.Label();
			this.button1 = new System.Windows.Forms.Button();
			this.button2 = new System.Windows.Forms.Button();
			this.tabControl1.SuspendLayout();
			this.tabPage1.SuspendLayout();
			this.groupBox5.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.dg_lan)).BeginInit();
			this.groupBox6.SuspendLayout();
			this.tabPage3.SuspendLayout();
			this.groupBox4.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.dg_class)).BeginInit();
			this.groupBox3.SuspendLayout();
			this.tabPage2.SuspendLayout();
			this.groupBox2.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.dg_plat)).BeginInit();
			this.groupBox1.SuspendLayout();
			this.tabPage4.SuspendLayout();
			this.groupBox7.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.dg_form)).BeginInit();
			this.groupBox8.SuspendLayout();
			this.SuspendLayout();
			// 
			// tabControl1
			// 
			this.tabControl1.Controls.Add(this.tabPage1);
			this.tabControl1.Controls.Add(this.tabPage3);
			this.tabControl1.Controls.Add(this.tabPage2);
			this.tabControl1.Controls.Add(this.tabPage4);
			this.tabControl1.Location = new System.Drawing.Point(8, 16);
			this.tabControl1.Name = "tabControl1";
			this.tabControl1.SelectedIndex = 0;
			this.tabControl1.Size = new System.Drawing.Size(384, 320);
			this.tabControl1.TabIndex = 0;
			this.tabControl1.SelectedIndexChanged += new System.EventHandler(this.tabControl1_SelectedIndexChanged);
			// 
			// tabPage1
			// 
			this.tabPage1.Controls.Add(this.groupBox5);
			this.tabPage1.Controls.Add(this.groupBox6);
			this.tabPage1.Location = new System.Drawing.Point(4, 21);
			this.tabPage1.Name = "tabPage1";
			this.tabPage1.Size = new System.Drawing.Size(376, 295);
			this.tabPage1.TabIndex = 0;
			this.tabPage1.Text = "代码语言";
			// 
			// groupBox5
			// 
			this.groupBox5.Controls.Add(this.dg_lan);
			this.groupBox5.Location = new System.Drawing.Point(8, 128);
			this.groupBox5.Name = "groupBox5";
			this.groupBox5.Size = new System.Drawing.Size(360, 152);
			this.groupBox5.TabIndex = 4;
			this.groupBox5.TabStop = false;
			// 
			// dg_lan
			// 
			this.dg_lan.CaptionText = "现有代码语言";
			this.dg_lan.DataMember = "";
			this.dg_lan.HeaderBackColor = System.Drawing.SystemColors.ControlLight;
			this.dg_lan.HeaderForeColor = System.Drawing.SystemColors.ControlText;
			this.dg_lan.LinkColor = System.Drawing.SystemColors.ControlLight;
			this.dg_lan.Location = new System.Drawing.Point(8, 16);
			this.dg_lan.Name = "dg_lan";
			this.dg_lan.ReadOnly = true;
			this.dg_lan.Size = new System.Drawing.Size(344, 128);
			this.dg_lan.TabIndex = 0;
			// 
			// groupBox6
			// 
			this.groupBox6.Controls.Add(this.checkBox1);
			this.groupBox6.Controls.Add(this.buttonAddL);
			this.groupBox6.Controls.Add(this.textBox5);
			this.groupBox6.Controls.Add(this.textBox6);
			this.groupBox6.Controls.Add(this.label5);
			this.groupBox6.Controls.Add(this.label6);
			this.groupBox6.Location = new System.Drawing.Point(8, 8);
			this.groupBox6.Name = "groupBox6";
			this.groupBox6.Size = new System.Drawing.Size(360, 112);
			this.groupBox6.TabIndex = 3;
			this.groupBox6.TabStop = false;
			this.groupBox6.Text = "信息添加";
			this.groupBox6.Enter += new System.EventHandler(this.groupBox6_Enter);
			// 
			// checkBox1
			// 
			this.checkBox1.Location = new System.Drawing.Point(248, 32);
			this.checkBox1.Name = "checkBox1";
			this.checkBox1.Size = new System.Drawing.Size(88, 24);
			this.checkBox1.TabIndex = 5;
			this.checkBox1.Text = "添加新语言";
			this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
			// 
			// buttonAddL
			// 
			this.buttonAddL.Location = new System.Drawing.Point(248, 64);
			this.buttonAddL.Name = "buttonAddL";
			this.buttonAddL.Size = new System.Drawing.Size(80, 24);
			this.buttonAddL.TabIndex = 4;
			this.buttonAddL.Text = "添加确认";
			this.buttonAddL.Click += new System.EventHandler(this.button5_Click);
			// 
			// textBox5
			// 
			this.textBox5.Enabled = false;
			this.textBox5.Location = new System.Drawing.Point(104, 32);
			this.textBox5.Name = "textBox5";
			this.textBox5.Size = new System.Drawing.Size(88, 21);
			this.textBox5.TabIndex = 3;
			this.textBox5.Text = "";
			// 
			// textBox6
			// 
			this.textBox6.Enabled = false;
			this.textBox6.Location = new System.Drawing.Point(104, 69);
			this.textBox6.Name = "textBox6";
			this.textBox6.Size = new System.Drawing.Size(88, 21);
			this.textBox6.TabIndex = 2;
			this.textBox6.Text = "";
			// 
			// label5
			// 
			this.label5.Location = new System.Drawing.Point(16, 72);
			this.label5.Name = "label5";
			this.label5.Size = new System.Drawing.Size(80, 24);
			this.label5.TabIndex = 1;
			this.label5.Text = "语言名称";
			// 
			// label6
			// 
			this.label6.Location = new System.Drawing.Point(16, 35);
			this.label6.Name = "label6";
			this.label6.Size = new System.Drawing.Size(80, 24);
			this.label6.TabIndex = 0;
			this.label6.Text = "代码语言编号";
			// 
			// tabPage3
			// 
			this.tabPage3.Controls.Add(this.groupBox4);
			this.tabPage3.Controls.Add(this.groupBox3);
			this.tabPage3.Location = new System.Drawing.Point(4, 21);
			this.tabPage3.Name = "tabPage3";
			this.tabPage3.Size = new System.Drawing.Size(376, 279);
			this.tabPage3.TabIndex = 2;
			this.tabPage3.Text = "代码领域";
			// 
			// groupBox4
			// 
			this.groupBox4.Controls.Add(this.dg_class);
			this.groupBox4.Location = new System.Drawing.Point(8, 128);
			this.groupBox4.Name = "groupBox4";
			this.groupBox4.Size = new System.Drawing.Size(360, 136);
			this.groupBox4.TabIndex = 3;
			this.groupBox4.TabStop = false;
			// 
			// dg_class
			// 
			this.dg_class.CaptionText = "现有代码领域信息";

⌨️ 快捷键说明

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