|
|
|
@ -29,14 +29,21 @@
|
|
|
|
|
private void InitializeComponent()
|
|
|
|
|
{
|
|
|
|
|
this.dataGridView1 = new System.Windows.Forms.DataGridView();
|
|
|
|
|
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
|
|
|
|
this.btnSave = new System.Windows.Forms.Button();
|
|
|
|
|
this.RfidNo = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
|
|
|
this.Green = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
|
|
|
this.Yellow = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
|
|
|
this.Red = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
|
|
|
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
|
|
|
|
this.btnSave = new System.Windows.Forms.Button();
|
|
|
|
|
this.groupBox2 = new System.Windows.Forms.GroupBox();
|
|
|
|
|
this.SetServerIPButton = new System.Windows.Forms.Button();
|
|
|
|
|
this.label2 = new System.Windows.Forms.Label();
|
|
|
|
|
this.label1 = new System.Windows.Forms.Label();
|
|
|
|
|
this.ServerPortTextbox = new System.Windows.Forms.TextBox();
|
|
|
|
|
this.ServerIPTextbox = new System.Windows.Forms.TextBox();
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
|
|
|
|
|
this.groupBox1.SuspendLayout();
|
|
|
|
|
this.groupBox2.SuspendLayout();
|
|
|
|
|
this.SuspendLayout();
|
|
|
|
|
//
|
|
|
|
|
// dataGridView1
|
|
|
|
@ -48,33 +55,14 @@
|
|
|
|
|
this.Yellow,
|
|
|
|
|
this.Red});
|
|
|
|
|
this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
|
|
|
this.dataGridView1.Location = new System.Drawing.Point(3, 24);
|
|
|
|
|
this.dataGridView1.Location = new System.Drawing.Point(3, 20);
|
|
|
|
|
this.dataGridView1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
|
|
|
|
this.dataGridView1.Name = "dataGridView1";
|
|
|
|
|
this.dataGridView1.RowHeadersWidth = 62;
|
|
|
|
|
this.dataGridView1.RowTemplate.Height = 30;
|
|
|
|
|
this.dataGridView1.Size = new System.Drawing.Size(693, 788);
|
|
|
|
|
this.dataGridView1.Size = new System.Drawing.Size(615, 657);
|
|
|
|
|
this.dataGridView1.TabIndex = 0;
|
|
|
|
|
//
|
|
|
|
|
// groupBox1
|
|
|
|
|
//
|
|
|
|
|
this.groupBox1.Controls.Add(this.dataGridView1);
|
|
|
|
|
this.groupBox1.Location = new System.Drawing.Point(27, 32);
|
|
|
|
|
this.groupBox1.Name = "groupBox1";
|
|
|
|
|
this.groupBox1.Size = new System.Drawing.Size(699, 815);
|
|
|
|
|
this.groupBox1.TabIndex = 1;
|
|
|
|
|
this.groupBox1.TabStop = false;
|
|
|
|
|
this.groupBox1.Text = "报警灯设置";
|
|
|
|
|
//
|
|
|
|
|
// btnSave
|
|
|
|
|
//
|
|
|
|
|
this.btnSave.Location = new System.Drawing.Point(30, 904);
|
|
|
|
|
this.btnSave.Name = "btnSave";
|
|
|
|
|
this.btnSave.Size = new System.Drawing.Size(183, 90);
|
|
|
|
|
this.btnSave.TabIndex = 2;
|
|
|
|
|
this.btnSave.Text = "保存报警灯";
|
|
|
|
|
this.btnSave.UseVisualStyleBackColor = true;
|
|
|
|
|
this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
|
|
|
|
|
//
|
|
|
|
|
// RfidNo
|
|
|
|
|
//
|
|
|
|
|
this.RfidNo.DataPropertyName = "RfidNo";
|
|
|
|
@ -115,17 +103,102 @@
|
|
|
|
|
this.Red.Resizable = System.Windows.Forms.DataGridViewTriState.False;
|
|
|
|
|
this.Red.Width = 80;
|
|
|
|
|
//
|
|
|
|
|
// groupBox1
|
|
|
|
|
//
|
|
|
|
|
this.groupBox1.Controls.Add(this.dataGridView1);
|
|
|
|
|
this.groupBox1.Location = new System.Drawing.Point(24, 27);
|
|
|
|
|
this.groupBox1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
|
|
|
|
this.groupBox1.Name = "groupBox1";
|
|
|
|
|
this.groupBox1.Padding = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
|
|
|
|
this.groupBox1.Size = new System.Drawing.Size(621, 679);
|
|
|
|
|
this.groupBox1.TabIndex = 1;
|
|
|
|
|
this.groupBox1.TabStop = false;
|
|
|
|
|
this.groupBox1.Text = "报警灯设置";
|
|
|
|
|
//
|
|
|
|
|
// btnSave
|
|
|
|
|
//
|
|
|
|
|
this.btnSave.Location = new System.Drawing.Point(27, 753);
|
|
|
|
|
this.btnSave.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
|
|
|
|
this.btnSave.Name = "btnSave";
|
|
|
|
|
this.btnSave.Size = new System.Drawing.Size(163, 75);
|
|
|
|
|
this.btnSave.TabIndex = 2;
|
|
|
|
|
this.btnSave.Text = "保存报警灯";
|
|
|
|
|
this.btnSave.UseVisualStyleBackColor = true;
|
|
|
|
|
this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
|
|
|
|
|
//
|
|
|
|
|
// groupBox2
|
|
|
|
|
//
|
|
|
|
|
this.groupBox2.Controls.Add(this.SetServerIPButton);
|
|
|
|
|
this.groupBox2.Controls.Add(this.label2);
|
|
|
|
|
this.groupBox2.Controls.Add(this.label1);
|
|
|
|
|
this.groupBox2.Controls.Add(this.ServerPortTextbox);
|
|
|
|
|
this.groupBox2.Controls.Add(this.ServerIPTextbox);
|
|
|
|
|
this.groupBox2.Location = new System.Drawing.Point(651, 27);
|
|
|
|
|
this.groupBox2.Name = "groupBox2";
|
|
|
|
|
this.groupBox2.Size = new System.Drawing.Size(487, 65);
|
|
|
|
|
this.groupBox2.TabIndex = 3;
|
|
|
|
|
this.groupBox2.TabStop = false;
|
|
|
|
|
this.groupBox2.Text = "服务端IP设置";
|
|
|
|
|
//
|
|
|
|
|
// SetServerIPButton
|
|
|
|
|
//
|
|
|
|
|
this.SetServerIPButton.Location = new System.Drawing.Point(394, 24);
|
|
|
|
|
this.SetServerIPButton.Name = "SetServerIPButton";
|
|
|
|
|
this.SetServerIPButton.Size = new System.Drawing.Size(75, 25);
|
|
|
|
|
this.SetServerIPButton.TabIndex = 4;
|
|
|
|
|
this.SetServerIPButton.Text = "设置";
|
|
|
|
|
this.SetServerIPButton.UseVisualStyleBackColor = true;
|
|
|
|
|
this.SetServerIPButton.Click += new System.EventHandler(this.SetServerIPButton_Click);
|
|
|
|
|
//
|
|
|
|
|
// label2
|
|
|
|
|
//
|
|
|
|
|
this.label2.AutoSize = true;
|
|
|
|
|
this.label2.Location = new System.Drawing.Point(223, 29);
|
|
|
|
|
this.label2.Name = "label2";
|
|
|
|
|
this.label2.Size = new System.Drawing.Size(87, 15);
|
|
|
|
|
this.label2.TabIndex = 3;
|
|
|
|
|
this.label2.Text = "ServerPort";
|
|
|
|
|
//
|
|
|
|
|
// label1
|
|
|
|
|
//
|
|
|
|
|
this.label1.AutoSize = true;
|
|
|
|
|
this.label1.Location = new System.Drawing.Point(6, 29);
|
|
|
|
|
this.label1.Name = "label1";
|
|
|
|
|
this.label1.Size = new System.Drawing.Size(71, 15);
|
|
|
|
|
this.label1.TabIndex = 2;
|
|
|
|
|
this.label1.Text = "ServerIP";
|
|
|
|
|
//
|
|
|
|
|
// ServerPortTextbox
|
|
|
|
|
//
|
|
|
|
|
this.ServerPortTextbox.Location = new System.Drawing.Point(316, 24);
|
|
|
|
|
this.ServerPortTextbox.Name = "ServerPortTextbox";
|
|
|
|
|
this.ServerPortTextbox.Size = new System.Drawing.Size(63, 25);
|
|
|
|
|
this.ServerPortTextbox.TabIndex = 1;
|
|
|
|
|
this.ServerPortTextbox.Text = "6001";
|
|
|
|
|
//
|
|
|
|
|
// ServerIPTextbox
|
|
|
|
|
//
|
|
|
|
|
this.ServerIPTextbox.Location = new System.Drawing.Point(83, 24);
|
|
|
|
|
this.ServerIPTextbox.Name = "ServerIPTextbox";
|
|
|
|
|
this.ServerIPTextbox.Size = new System.Drawing.Size(134, 25);
|
|
|
|
|
this.ServerIPTextbox.TabIndex = 0;
|
|
|
|
|
this.ServerIPTextbox.Text = "192.168.0.101";
|
|
|
|
|
//
|
|
|
|
|
// FrmSetting
|
|
|
|
|
//
|
|
|
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 18F);
|
|
|
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
|
|
|
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
|
|
|
this.ClientSize = new System.Drawing.Size(2021, 1124);
|
|
|
|
|
this.ClientSize = new System.Drawing.Size(1796, 937);
|
|
|
|
|
this.Controls.Add(this.groupBox2);
|
|
|
|
|
this.Controls.Add(this.btnSave);
|
|
|
|
|
this.Controls.Add(this.groupBox1);
|
|
|
|
|
this.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
|
|
|
|
this.Name = "FrmSetting";
|
|
|
|
|
this.Text = "参数设置";
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
|
|
|
|
|
this.groupBox1.ResumeLayout(false);
|
|
|
|
|
this.groupBox2.ResumeLayout(false);
|
|
|
|
|
this.groupBox2.PerformLayout();
|
|
|
|
|
this.ResumeLayout(false);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -139,5 +212,11 @@
|
|
|
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn Green;
|
|
|
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn Yellow;
|
|
|
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn Red;
|
|
|
|
|
private System.Windows.Forms.GroupBox groupBox2;
|
|
|
|
|
private System.Windows.Forms.Label label2;
|
|
|
|
|
private System.Windows.Forms.Label label1;
|
|
|
|
|
private System.Windows.Forms.TextBox ServerPortTextbox;
|
|
|
|
|
private System.Windows.Forms.TextBox ServerIPTextbox;
|
|
|
|
|
private System.Windows.Forms.Button SetServerIPButton;
|
|
|
|
|
}
|
|
|
|
|
}
|