|
|
|
@ -29,10 +29,18 @@ |
|
|
|
private void InitializeComponent() |
|
|
|
{ |
|
|
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); |
|
|
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
|
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
|
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
|
|
this.comboBox1 = new System.Windows.Forms.ComboBox(); |
|
|
|
this.uButton1 = new WinFormControl.UButton(); |
|
|
|
this.uScanPanel1 = new WinFormControl.UScanPanel(); |
|
|
|
this.uTimerLabel1 = new WinFormControl.UTimerLabel(); |
|
|
|
this.uWeightControl1 = new WinFormControl.UWeightControl(); |
|
|
|
this.uDataGridView1 = new WinFormControl.UDataGridView(); |
|
|
|
this.RID = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|
|
|
this.RName = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|
|
|
((System.ComponentModel.ISupportInitialize)(this.uDataGridView1)).BeginInit(); |
|
|
|
this.SuspendLayout(); |
|
|
|
//
|
|
|
|
// comboBox1
|
|
|
|
@ -71,38 +79,105 @@ |
|
|
|
this.uScanPanel1.BeforeScan += new System.Action(this.uScanPanel1_BeforeScan); |
|
|
|
this.uScanPanel1.AfterScan += new System.Action(this.uScanPanel1_AfterScan); |
|
|
|
//
|
|
|
|
// uTimerLabel1
|
|
|
|
//
|
|
|
|
this.uTimerLabel1.AutoSize = true; |
|
|
|
this.uTimerLabel1.BackColor = System.Drawing.Color.Transparent; |
|
|
|
this.uTimerLabel1.Font = new System.Drawing.Font("宋体", 15F); |
|
|
|
this.uTimerLabel1.Format = "M月d日 H:m:s"; |
|
|
|
this.uTimerLabel1.Location = new System.Drawing.Point(315, 124); |
|
|
|
this.uTimerLabel1.Name = "uTimerLabel1"; |
|
|
|
this.uTimerLabel1.Size = new System.Drawing.Size(159, 20); |
|
|
|
this.uTimerLabel1.TabIndex = 4; |
|
|
|
this.uTimerLabel1.Text = "3月30日 11:37:0"; |
|
|
|
//
|
|
|
|
// uWeightControl1
|
|
|
|
//
|
|
|
|
this.uWeightControl1.BackColor = System.Drawing.Color.Transparent; |
|
|
|
this.uWeightControl1.Location = new System.Drawing.Point(2, 12); |
|
|
|
this.uWeightControl1.Location = new System.Drawing.Point(12, 12); |
|
|
|
this.uWeightControl1.Name = "uWeightControl1"; |
|
|
|
this.uWeightControl1.Size = new System.Drawing.Size(348, 78); |
|
|
|
this.uWeightControl1.TabIndex = 0; |
|
|
|
this.uWeightControl1.WeightFalg = "Test"; |
|
|
|
this.uWeightControl1.ReceivedValue += new System.Action<decimal>(this.uWeightControl1_ReceivedValue); |
|
|
|
this.uWeightControl1.Size = new System.Drawing.Size(349, 78); |
|
|
|
this.uWeightControl1.TabIndex = 5; |
|
|
|
this.uWeightControl1.WeightFalg = null; |
|
|
|
//
|
|
|
|
// uDataGridView1
|
|
|
|
//
|
|
|
|
this.uDataGridView1.AllowUserToAddRows = false; |
|
|
|
this.uDataGridView1.AllowUserToDeleteRows = false; |
|
|
|
this.uDataGridView1.AllowUserToResizeColumns = false; |
|
|
|
this.uDataGridView1.AllowUserToResizeRows = false; |
|
|
|
dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); |
|
|
|
this.uDataGridView1.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; |
|
|
|
this.uDataGridView1.BackgroundColor = System.Drawing.Color.White; |
|
|
|
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |
|
|
|
dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 12F); |
|
|
|
dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White; |
|
|
|
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |
|
|
|
this.uDataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; |
|
|
|
this.uDataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; |
|
|
|
this.uDataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { |
|
|
|
this.RID, |
|
|
|
this.RName}); |
|
|
|
this.uDataGridView1.Location = new System.Drawing.Point(558, 47); |
|
|
|
this.uDataGridView1.MultiSelect = false; |
|
|
|
this.uDataGridView1.Name = "uDataGridView1"; |
|
|
|
this.uDataGridView1.ReadOnly = true; |
|
|
|
this.uDataGridView1.RowHeadersVisible = false; |
|
|
|
dataGridViewCellStyle3.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
|
|
|
dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218))))); |
|
|
|
this.uDataGridView1.RowsDefaultCellStyle = dataGridViewCellStyle3; |
|
|
|
this.uDataGridView1.RowTemplate.Height = 23; |
|
|
|
this.uDataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; |
|
|
|
this.uDataGridView1.Size = new System.Drawing.Size(259, 196); |
|
|
|
this.uDataGridView1.TabIndex = 6; |
|
|
|
this.uDataGridView1.CellMouseDown += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.uDataGridView1_CellMouseDown); |
|
|
|
this.uDataGridView1.CellMouseMove += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.uDataGridView1_CellMouseMove); |
|
|
|
this.uDataGridView1.DragDrop += new System.Windows.Forms.DragEventHandler(this.uDataGridView1_DragDrop); |
|
|
|
//
|
|
|
|
// RID
|
|
|
|
//
|
|
|
|
this.RID.DataPropertyName = "ID"; |
|
|
|
this.RID.HeaderText = "序号"; |
|
|
|
this.RID.Name = "RID"; |
|
|
|
this.RID.ReadOnly = true; |
|
|
|
//
|
|
|
|
// RName
|
|
|
|
//
|
|
|
|
this.RName.DataPropertyName = "Name"; |
|
|
|
this.RName.HeaderText = "名称"; |
|
|
|
this.RName.Name = "RName"; |
|
|
|
this.RName.ReadOnly = true; |
|
|
|
//
|
|
|
|
// Form1
|
|
|
|
//
|
|
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); |
|
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
|
|
|
this.BackColor = System.Drawing.Color.White; |
|
|
|
this.ClientSize = new System.Drawing.Size(604, 363); |
|
|
|
this.ClientSize = new System.Drawing.Size(922, 453); |
|
|
|
this.Controls.Add(this.uDataGridView1); |
|
|
|
this.Controls.Add(this.uWeightControl1); |
|
|
|
this.Controls.Add(this.uTimerLabel1); |
|
|
|
this.Controls.Add(this.comboBox1); |
|
|
|
this.Controls.Add(this.uButton1); |
|
|
|
this.Controls.Add(this.uScanPanel1); |
|
|
|
this.Controls.Add(this.uWeightControl1); |
|
|
|
this.KeyPreview = true; |
|
|
|
this.Name = "Form1"; |
|
|
|
this.Text = "Form1"; |
|
|
|
((System.ComponentModel.ISupportInitialize)(this.uDataGridView1)).EndInit(); |
|
|
|
this.ResumeLayout(false); |
|
|
|
this.PerformLayout(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
private WinFormControl.UWeightControl uWeightControl1; |
|
|
|
private WinFormControl.UScanPanel uScanPanel1; |
|
|
|
private WinFormControl.UButton uButton1; |
|
|
|
private System.Windows.Forms.ComboBox comboBox1; |
|
|
|
private WinFormControl.UTimerLabel uTimerLabel1; |
|
|
|
private WinFormControl.UWeightControl uWeightControl1; |
|
|
|
private WinFormControl.UDataGridView uDataGridView1; |
|
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn RID; |
|
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn RName; |
|
|
|
} |
|
|
|
} |