namespace Input_Status { partial class Form1 { /// /// 設計工具所需的變數。 /// private System.ComponentModel.IContainer components = null; /// /// 清除任何使用中的資源。 /// /// 如果應該公開 Managed 資源則為 true,否則為 false。 protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows Form 設計工具產生的程式碼 /// /// 此為設計工具支援所需的方法 - 請勿使用程式碼編輯器修改這個方法的內容。 /// /// private void InitializeComponent() { this.label3 = new System.Windows.Forms.Label(); this.timerScan = new System.Windows.Forms.Timer(); this.txtChannelNumber = new System.Windows.Forms.TextBox(); this.btDisconnect = new System.Windows.Forms.Button(); this.btConnect = new System.Windows.Forms.Button(); this.txtPort = new System.Windows.Forms.TextBox(); this.txtIP = new System.Windows.Forms.TextBox(); this.label2 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.dataGrid1 = new System.Windows.Forms.DataGrid(); this.SuspendLayout(); // // label3 // this.label3.Location = new System.Drawing.Point(3, 64); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(98, 22); this.label3.Text = "Total Channel:"; // // timerScan // this.timerScan.Interval = 1000; this.timerScan.Tick += new System.EventHandler(this.timerScan_Tick_1); // // txtChannelNumber // this.txtChannelNumber.Location = new System.Drawing.Point(104, 64); this.txtChannelNumber.Name = "txtChannelNumber"; this.txtChannelNumber.Size = new System.Drawing.Size(92, 23); this.txtChannelNumber.TabIndex = 19; this.txtChannelNumber.Text = "10"; // // btDisconnect // this.btDisconnect.Enabled = false; this.btDisconnect.Location = new System.Drawing.Point(202, 54); this.btDisconnect.Name = "btDisconnect"; this.btDisconnect.Size = new System.Drawing.Size(96, 32); this.btDisconnect.TabIndex = 17; this.btDisconnect.Text = "Disconnect"; this.btDisconnect.Click += new System.EventHandler(this.btDisconnect_Click_1); // // btConnect // this.btConnect.Location = new System.Drawing.Point(202, 10); this.btConnect.Name = "btConnect"; this.btConnect.Size = new System.Drawing.Size(96, 32); this.btConnect.TabIndex = 16; this.btConnect.Text = "Connect"; this.btConnect.Click += new System.EventHandler(this.btConnect_Click_1); // // txtPort // this.txtPort.Location = new System.Drawing.Point(104, 36); this.txtPort.Name = "txtPort"; this.txtPort.Size = new System.Drawing.Size(92, 23); this.txtPort.TabIndex = 15; this.txtPort.Text = "502"; // // txtIP // this.txtIP.Location = new System.Drawing.Point(104, 10); this.txtIP.Name = "txtIP"; this.txtIP.Size = new System.Drawing.Size(92, 23); this.txtIP.TabIndex = 14; this.txtIP.Text = "10.1.0.5"; // // label2 // this.label2.Location = new System.Drawing.Point(53, 36); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(42, 22); this.label2.Text = "Port :"; // // label1 // this.label1.Location = new System.Drawing.Point(16, 10); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(82, 22); this.label1.Text = "IP address :"; // // dataGrid1 // this.dataGrid1.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(128))))); this.dataGrid1.Location = new System.Drawing.Point(3, 89); this.dataGrid1.Name = "dataGrid1"; this.dataGrid1.Size = new System.Drawing.Size(295, 113); this.dataGrid1.TabIndex = 24; this.dataGrid1.CurrentCellChanged += new System.EventHandler(this.dataGrid1_CurrentCellChanged); // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.AutoScroll = true; this.ClientSize = new System.Drawing.Size(305, 212); this.Controls.Add(this.dataGrid1); this.Controls.Add(this.label3); this.Controls.Add(this.txtChannelNumber); this.Controls.Add(this.btDisconnect); this.Controls.Add(this.btConnect); this.Controls.Add(this.txtPort); this.Controls.Add(this.txtIP); this.Controls.Add(this.label2); this.Controls.Add(this.label1); this.Name = "Form1"; this.Text = "Input_Register_Modbus_TCP_Demo"; this.Load += new System.EventHandler(this.Form1_Load); this.ResumeLayout(false); } #endregion private System.Windows.Forms.Label label3; private System.Windows.Forms.Timer timerScan; private System.Windows.Forms.TextBox txtChannelNumber; private System.Windows.Forms.Button btDisconnect; private System.Windows.Forms.Button btConnect; private System.Windows.Forms.TextBox txtPort; private System.Windows.Forms.TextBox txtIP; private System.Windows.Forms.Label label2; private System.Windows.Forms.Label label1; private System.Windows.Forms.DataGrid dataGrid1; } }