初始化代码

This commit is contained in:
admin
2020-12-18 13:51:58 +08:00
parent 42e945036f
commit abb13c805d
13 changed files with 316 additions and 72 deletions

View File

@@ -30,13 +30,18 @@ namespace U8AppMain
private void InitializeComponent()
{
this.panel1 = new System.Windows.Forms.Panel();
this.panel2 = new System.Windows.Forms.Panel();
this.BtnBomImport = new System.Windows.Forms.Button();
this.panel2 = new System.Windows.Forms.Panel();
this.kryptonDataGridView1 = new ComponentFactory.Krypton.Toolkit.KryptonDataGridView();
this.BtnImportExcel = new System.Windows.Forms.Button();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.kryptonDataGridView1)).BeginInit();
this.SuspendLayout();
//
// panel1
//
this.panel1.Controls.Add(this.BtnImportExcel);
this.panel1.Controls.Add(this.BtnBomImport);
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Location = new System.Drawing.Point(0, 0);
@@ -44,17 +49,9 @@ namespace U8AppMain
this.panel1.Size = new System.Drawing.Size(800, 42);
this.panel1.TabIndex = 0;
//
// panel2
//
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel2.Location = new System.Drawing.Point(0, 42);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(800, 408);
this.panel2.TabIndex = 1;
//
// BtnBomImport
//
this.BtnBomImport.Location = new System.Drawing.Point(12, 12);
this.BtnBomImport.Location = new System.Drawing.Point(108, 12);
this.BtnBomImport.Name = "BtnBomImport";
this.BtnBomImport.Size = new System.Drawing.Size(75, 23);
this.BtnBomImport.TabIndex = 0;
@@ -62,16 +59,51 @@ namespace U8AppMain
this.BtnBomImport.UseVisualStyleBackColor = true;
this.BtnBomImport.Click += new System.EventHandler(this.BtnBomImport_Click);
//
// Form1
// panel2
//
this.panel2.Controls.Add(this.kryptonDataGridView1);
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel2.Location = new System.Drawing.Point(0, 42);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(800, 408);
this.panel2.TabIndex = 1;
//
// kryptonDataGridView1
//
this.kryptonDataGridView1.AllowUserToAddRows = false;
this.kryptonDataGridView1.AllowUserToDeleteRows = false;
this.kryptonDataGridView1.AllowUserToResizeRows = false;
this.kryptonDataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.kryptonDataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
this.kryptonDataGridView1.Location = new System.Drawing.Point(0, 0);
this.kryptonDataGridView1.Name = "kryptonDataGridView1";
this.kryptonDataGridView1.ReadOnly = true;
this.kryptonDataGridView1.RowTemplate.Height = 23;
this.kryptonDataGridView1.Size = new System.Drawing.Size(800, 408);
this.kryptonDataGridView1.TabIndex = 0;
//
// BtnImportExcel
//
this.BtnImportExcel.Location = new System.Drawing.Point(12, 12);
this.BtnImportExcel.Name = "BtnImportExcel";
this.BtnImportExcel.Size = new System.Drawing.Size(75, 23);
this.BtnImportExcel.TabIndex = 1;
this.BtnImportExcel.Text = "读取Exel";
this.BtnImportExcel.UseVisualStyleBackColor = true;
this.BtnImportExcel.Click += new System.EventHandler(this.BtnImportExcel_Click);
//
// FrmMain
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 450);
this.Controls.Add(this.panel2);
this.Controls.Add(this.panel1);
this.Name = "Form1";
this.Name = "FrmMain";
this.Text = "Form1";
this.panel1.ResumeLayout(false);
this.panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.kryptonDataGridView1)).EndInit();
this.ResumeLayout(false);
}
@@ -81,6 +113,8 @@ namespace U8AppMain
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Button BtnBomImport;
private System.Windows.Forms.Panel panel2;
private ComponentFactory.Krypton.Toolkit.KryptonDataGridView kryptonDataGridView1;
private System.Windows.Forms.Button BtnImportExcel;
}
}