|
@@ -28,12 +28,329 @@
|
|
|
/// </summary>
|
|
|
private void InitializeComponent()
|
|
|
{
|
|
|
- this.components = new System.ComponentModel.Container();
|
|
|
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
|
- this.ClientSize = new System.Drawing.Size(800, 450);
|
|
|
- this.Text = "SettingForm";
|
|
|
+ btnOK = new Button();
|
|
|
+ btnCancel = new Button();
|
|
|
+ groupBox1 = new GroupBox();
|
|
|
+ txtServer = new TextBox();
|
|
|
+ label1 = new Label();
|
|
|
+ groupBox2 = new GroupBox();
|
|
|
+ label6 = new Label();
|
|
|
+ nudInterval = new NumericUpDown();
|
|
|
+ cboPLCType = new ComboBox();
|
|
|
+ label4 = new Label();
|
|
|
+ label5 = new Label();
|
|
|
+ txtPLCPort = new TextBox();
|
|
|
+ label3 = new Label();
|
|
|
+ txtPLCIP = new TextBox();
|
|
|
+ label2 = new Label();
|
|
|
+ groupBox3 = new GroupBox();
|
|
|
+ label7 = new Label();
|
|
|
+ label8 = new Label();
|
|
|
+ txtPassword = new TextBox();
|
|
|
+ txtUserName = new TextBox();
|
|
|
+ txtCameraPort = new TextBox();
|
|
|
+ label10 = new Label();
|
|
|
+ txtCameraIP = new TextBox();
|
|
|
+ label11 = new Label();
|
|
|
+ groupBox1.SuspendLayout();
|
|
|
+ groupBox2.SuspendLayout();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)nudInterval).BeginInit();
|
|
|
+ groupBox3.SuspendLayout();
|
|
|
+ SuspendLayout();
|
|
|
+ //
|
|
|
+ // btnOK
|
|
|
+ //
|
|
|
+ btnOK.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
|
|
|
+ btnOK.Location = new Point(276, 486);
|
|
|
+ btnOK.Name = "btnOK";
|
|
|
+ btnOK.Size = new Size(75, 23);
|
|
|
+ btnOK.TabIndex = 0;
|
|
|
+ btnOK.Text = "确定";
|
|
|
+ btnOK.UseVisualStyleBackColor = true;
|
|
|
+ btnOK.Click += btnOK_Click;
|
|
|
+ //
|
|
|
+ // btnCancel
|
|
|
+ //
|
|
|
+ btnCancel.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
|
|
|
+ btnCancel.Location = new Point(357, 486);
|
|
|
+ btnCancel.Name = "btnCancel";
|
|
|
+ btnCancel.Size = new Size(75, 23);
|
|
|
+ btnCancel.TabIndex = 1;
|
|
|
+ btnCancel.Text = "取消";
|
|
|
+ btnCancel.UseVisualStyleBackColor = true;
|
|
|
+ btnCancel.Click += btnCancel_Click;
|
|
|
+ //
|
|
|
+ // groupBox1
|
|
|
+ //
|
|
|
+ groupBox1.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
|
+ groupBox1.Controls.Add(txtServer);
|
|
|
+ groupBox1.Controls.Add(label1);
|
|
|
+ groupBox1.Location = new Point(12, 12);
|
|
|
+ groupBox1.Name = "groupBox1";
|
|
|
+ groupBox1.Size = new Size(420, 64);
|
|
|
+ groupBox1.TabIndex = 2;
|
|
|
+ groupBox1.TabStop = false;
|
|
|
+ groupBox1.Text = "平台";
|
|
|
+ //
|
|
|
+ // txtServer
|
|
|
+ //
|
|
|
+ txtServer.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
|
+ txtServer.Location = new Point(90, 22);
|
|
|
+ txtServer.Name = "txtServer";
|
|
|
+ txtServer.Size = new Size(303, 23);
|
|
|
+ txtServer.TabIndex = 1;
|
|
|
+ //
|
|
|
+ // label1
|
|
|
+ //
|
|
|
+ label1.AutoSize = true;
|
|
|
+ label1.Location = new Point(25, 25);
|
|
|
+ label1.Name = "label1";
|
|
|
+ label1.Size = new Size(59, 17);
|
|
|
+ label1.TabIndex = 0;
|
|
|
+ label1.Text = "服务地址:";
|
|
|
+ //
|
|
|
+ // groupBox2
|
|
|
+ //
|
|
|
+ groupBox2.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
|
+ groupBox2.Controls.Add(label6);
|
|
|
+ groupBox2.Controls.Add(nudInterval);
|
|
|
+ groupBox2.Controls.Add(cboPLCType);
|
|
|
+ groupBox2.Controls.Add(label4);
|
|
|
+ groupBox2.Controls.Add(label5);
|
|
|
+ groupBox2.Controls.Add(txtPLCPort);
|
|
|
+ groupBox2.Controls.Add(label3);
|
|
|
+ groupBox2.Controls.Add(txtPLCIP);
|
|
|
+ groupBox2.Controls.Add(label2);
|
|
|
+ groupBox2.Location = new Point(12, 92);
|
|
|
+ groupBox2.Name = "groupBox2";
|
|
|
+ groupBox2.Size = new Size(420, 182);
|
|
|
+ groupBox2.TabIndex = 2;
|
|
|
+ groupBox2.TabStop = false;
|
|
|
+ groupBox2.Text = "PLC";
|
|
|
+ //
|
|
|
+ // label6
|
|
|
+ //
|
|
|
+ label6.AutoSize = true;
|
|
|
+ label6.Location = new Point(131, 148);
|
|
|
+ label6.Name = "label6";
|
|
|
+ label6.Size = new Size(20, 17);
|
|
|
+ label6.TabIndex = 4;
|
|
|
+ label6.Text = "秒";
|
|
|
+ //
|
|
|
+ // nudInterval
|
|
|
+ //
|
|
|
+ nudInterval.Location = new Point(90, 145);
|
|
|
+ nudInterval.Maximum = new decimal(new int[] { 10, 0, 0, 0 });
|
|
|
+ nudInterval.Minimum = new decimal(new int[] { 1, 0, 0, 0 });
|
|
|
+ nudInterval.Name = "nudInterval";
|
|
|
+ nudInterval.Size = new Size(40, 23);
|
|
|
+ nudInterval.TabIndex = 3;
|
|
|
+ nudInterval.TextAlign = HorizontalAlignment.Right;
|
|
|
+ nudInterval.Value = new decimal(new int[] { 2, 0, 0, 0 });
|
|
|
+ //
|
|
|
+ // cboPLCType
|
|
|
+ //
|
|
|
+ cboPLCType.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
|
+ cboPLCType.FormattingEnabled = true;
|
|
|
+ cboPLCType.Location = new Point(90, 104);
|
|
|
+ cboPLCType.Name = "cboPLCType";
|
|
|
+ cboPLCType.Size = new Size(303, 25);
|
|
|
+ cboPLCType.TabIndex = 2;
|
|
|
+ //
|
|
|
+ // label4
|
|
|
+ //
|
|
|
+ label4.AutoSize = true;
|
|
|
+ label4.Location = new Point(25, 107);
|
|
|
+ label4.Name = "label4";
|
|
|
+ label4.Size = new Size(35, 17);
|
|
|
+ label4.TabIndex = 0;
|
|
|
+ label4.Text = "类型:";
|
|
|
+ //
|
|
|
+ // label5
|
|
|
+ //
|
|
|
+ label5.AutoSize = true;
|
|
|
+ label5.Location = new Point(25, 148);
|
|
|
+ label5.Name = "label5";
|
|
|
+ label5.Size = new Size(59, 17);
|
|
|
+ label5.TabIndex = 0;
|
|
|
+ label5.Text = "接受频率:";
|
|
|
+ //
|
|
|
+ // txtPLCPort
|
|
|
+ //
|
|
|
+ txtPLCPort.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
|
+ txtPLCPort.Location = new Point(90, 63);
|
|
|
+ txtPLCPort.Name = "txtPLCPort";
|
|
|
+ txtPLCPort.Size = new Size(303, 23);
|
|
|
+ txtPLCPort.TabIndex = 1;
|
|
|
+ //
|
|
|
+ // label3
|
|
|
+ //
|
|
|
+ label3.AutoSize = true;
|
|
|
+ label3.Location = new Point(25, 66);
|
|
|
+ label3.Name = "label3";
|
|
|
+ label3.Size = new Size(47, 17);
|
|
|
+ label3.TabIndex = 0;
|
|
|
+ label3.Text = "端口号:";
|
|
|
+ //
|
|
|
+ // txtPLCIP
|
|
|
+ //
|
|
|
+ txtPLCIP.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
|
+ txtPLCIP.Location = new Point(90, 22);
|
|
|
+ txtPLCIP.Name = "txtPLCIP";
|
|
|
+ txtPLCIP.Size = new Size(303, 23);
|
|
|
+ txtPLCIP.TabIndex = 1;
|
|
|
+ //
|
|
|
+ // label2
|
|
|
+ //
|
|
|
+ label2.AutoSize = true;
|
|
|
+ label2.Location = new Point(25, 25);
|
|
|
+ label2.Name = "label2";
|
|
|
+ label2.Size = new Size(22, 17);
|
|
|
+ label2.TabIndex = 0;
|
|
|
+ label2.Text = "IP:";
|
|
|
+ //
|
|
|
+ // groupBox3
|
|
|
+ //
|
|
|
+ groupBox3.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
|
+ groupBox3.Controls.Add(label7);
|
|
|
+ groupBox3.Controls.Add(label8);
|
|
|
+ groupBox3.Controls.Add(txtPassword);
|
|
|
+ groupBox3.Controls.Add(txtUserName);
|
|
|
+ groupBox3.Controls.Add(txtCameraPort);
|
|
|
+ groupBox3.Controls.Add(label10);
|
|
|
+ groupBox3.Controls.Add(txtCameraIP);
|
|
|
+ groupBox3.Controls.Add(label11);
|
|
|
+ groupBox3.Location = new Point(12, 291);
|
|
|
+ groupBox3.Name = "groupBox3";
|
|
|
+ groupBox3.Size = new Size(420, 182);
|
|
|
+ groupBox3.TabIndex = 2;
|
|
|
+ groupBox3.TabStop = false;
|
|
|
+ groupBox3.Text = "摄像头";
|
|
|
+ //
|
|
|
+ // label7
|
|
|
+ //
|
|
|
+ label7.AutoSize = true;
|
|
|
+ label7.Location = new Point(25, 145);
|
|
|
+ label7.Name = "label7";
|
|
|
+ label7.Size = new Size(35, 17);
|
|
|
+ label7.TabIndex = 0;
|
|
|
+ label7.Text = "密码:";
|
|
|
+ //
|
|
|
+ // label8
|
|
|
+ //
|
|
|
+ label8.AutoSize = true;
|
|
|
+ label8.Location = new Point(25, 104);
|
|
|
+ label8.Name = "label8";
|
|
|
+ label8.Size = new Size(47, 17);
|
|
|
+ label8.TabIndex = 0;
|
|
|
+ label8.Text = "用户名:";
|
|
|
+ //
|
|
|
+ // txtPassword
|
|
|
+ //
|
|
|
+ txtPassword.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
|
+ txtPassword.Location = new Point(90, 142);
|
|
|
+ txtPassword.Name = "txtPassword";
|
|
|
+ txtPassword.Size = new Size(303, 23);
|
|
|
+ txtPassword.TabIndex = 1;
|
|
|
+ //
|
|
|
+ // txtUserName
|
|
|
+ //
|
|
|
+ txtUserName.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
|
+ txtUserName.Location = new Point(90, 102);
|
|
|
+ txtUserName.Name = "txtUserName";
|
|
|
+ txtUserName.Size = new Size(303, 23);
|
|
|
+ txtUserName.TabIndex = 1;
|
|
|
+ //
|
|
|
+ // txtCameraPort
|
|
|
+ //
|
|
|
+ txtCameraPort.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
|
+ txtCameraPort.Location = new Point(90, 62);
|
|
|
+ txtCameraPort.Name = "txtCameraPort";
|
|
|
+ txtCameraPort.Size = new Size(303, 23);
|
|
|
+ txtCameraPort.TabIndex = 1;
|
|
|
+ //
|
|
|
+ // label10
|
|
|
+ //
|
|
|
+ label10.AutoSize = true;
|
|
|
+ label10.Location = new Point(25, 65);
|
|
|
+ label10.Name = "label10";
|
|
|
+ label10.Size = new Size(47, 17);
|
|
|
+ label10.TabIndex = 0;
|
|
|
+ label10.Text = "端口号:";
|
|
|
+ //
|
|
|
+ // txtCameraIP
|
|
|
+ //
|
|
|
+ txtCameraIP.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
|
+ txtCameraIP.Location = new Point(90, 22);
|
|
|
+ txtCameraIP.Name = "txtCameraIP";
|
|
|
+ txtCameraIP.Size = new Size(303, 23);
|
|
|
+ txtCameraIP.TabIndex = 1;
|
|
|
+ //
|
|
|
+ // label11
|
|
|
+ //
|
|
|
+ label11.AutoSize = true;
|
|
|
+ label11.Location = new Point(25, 25);
|
|
|
+ label11.Name = "label11";
|
|
|
+ label11.Size = new Size(22, 17);
|
|
|
+ label11.TabIndex = 0;
|
|
|
+ label11.Text = "IP:";
|
|
|
+ //
|
|
|
+ // SettingForm
|
|
|
+ //
|
|
|
+ AutoScaleDimensions = new SizeF(7F, 17F);
|
|
|
+ AutoScaleMode = AutoScaleMode.Font;
|
|
|
+ ClientSize = new Size(444, 521);
|
|
|
+ Controls.Add(groupBox3);
|
|
|
+ Controls.Add(groupBox2);
|
|
|
+ Controls.Add(groupBox1);
|
|
|
+ Controls.Add(btnCancel);
|
|
|
+ Controls.Add(btnOK);
|
|
|
+ FormBorderStyle = FormBorderStyle.FixedSingle;
|
|
|
+ MaximizeBox = false;
|
|
|
+ MinimizeBox = false;
|
|
|
+ MinimumSize = new Size(460, 560);
|
|
|
+ Name = "SettingForm";
|
|
|
+ ShowIcon = false;
|
|
|
+ StartPosition = FormStartPosition.CenterParent;
|
|
|
+ Text = "配置";
|
|
|
+ Load += SettingForm_Load;
|
|
|
+ groupBox1.ResumeLayout(false);
|
|
|
+ groupBox1.PerformLayout();
|
|
|
+ groupBox2.ResumeLayout(false);
|
|
|
+ groupBox2.PerformLayout();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)nudInterval).EndInit();
|
|
|
+ groupBox3.ResumeLayout(false);
|
|
|
+ groupBox3.PerformLayout();
|
|
|
+ ResumeLayout(false);
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
+
|
|
|
+ private Button btnOK;
|
|
|
+ private Button btnCancel;
|
|
|
+ private GroupBox groupBox1;
|
|
|
+ private TextBox txtServer;
|
|
|
+ private Label label1;
|
|
|
+ private GroupBox groupBox2;
|
|
|
+ private TextBox txtPLCIP;
|
|
|
+ private Label label2;
|
|
|
+ private ComboBox cboPLCType;
|
|
|
+ private Label label4;
|
|
|
+ private TextBox txtPLCPort;
|
|
|
+ private Label label3;
|
|
|
+ private Label label6;
|
|
|
+ private NumericUpDown nudInterval;
|
|
|
+ private Label label5;
|
|
|
+ private GroupBox groupBox3;
|
|
|
+ private Label label8;
|
|
|
+ private Label label9;
|
|
|
+ private TextBox txtCameraIP;
|
|
|
+ private Label label10;
|
|
|
+ private TextBox txtCameraPort;
|
|
|
+ private Label label11;
|
|
|
+ private TextBox txtUserName;
|
|
|
+ private Label label7;
|
|
|
+ private TextBox txtPassword;
|
|
|
+ private TextBox textBox3;
|
|
|
}
|
|
|
}
|