namespace GSModbus
|
{
|
partial class Form1
|
{
|
/// <summary>
|
/// Required designer variable.
|
/// </summary>
|
private System.ComponentModel.IContainer components = null;
|
|
/// <summary>
|
/// Clean up any resources being used.
|
/// </summary>
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
protected override void Dispose(bool disposing)
|
{
|
if (disposing && (components != null))
|
{
|
components.Dispose();
|
}
|
base.Dispose(disposing);
|
}
|
|
#region Windows Form Designer generated code
|
|
/// <summary>
|
/// Required method for Designer support - do not modify
|
/// the contents of this method with the code editor.
|
/// </summary>
|
private void InitializeComponent()
|
{
|
this.groupBoxConnection = new System.Windows.Forms.GroupBox();
|
this.btnLoadConfig = new System.Windows.Forms.Button();
|
this.lblConfigPath = new System.Windows.Forms.Label();
|
this.label2 = new System.Windows.Forms.Label();
|
this.lblConnectionStatus = new System.Windows.Forms.Label();
|
this.btnDisconnect = new System.Windows.Forms.Button();
|
this.btnConnect = new System.Windows.Forms.Button();
|
this.label1 = new System.Windows.Forms.Label();
|
this.btnTestDatabase = new System.Windows.Forms.Button();
|
this.lblDatabaseStatus = new System.Windows.Forms.Label();
|
this.label3 = new System.Windows.Forms.Label();
|
this.groupBoxStats = new System.Windows.Forms.GroupBox();
|
this.lblStats = new System.Windows.Forms.Label();
|
this.groupBoxLog = new System.Windows.Forms.GroupBox();
|
this.btnClearLog = new System.Windows.Forms.Button();
|
this.txtLog = new System.Windows.Forms.TextBox();
|
this.lblDataCount = new System.Windows.Forms.Label();
|
this.groupBoxConnection.SuspendLayout();
|
this.groupBoxStats.SuspendLayout();
|
this.groupBoxLog.SuspendLayout();
|
this.SuspendLayout();
|
//
|
// groupBoxConnection
|
//
|
this.groupBoxConnection.Controls.Add(this.btnLoadConfig);
|
this.groupBoxConnection.Controls.Add(this.lblConfigPath);
|
this.groupBoxConnection.Controls.Add(this.label2);
|
this.groupBoxConnection.Controls.Add(this.lblConnectionStatus);
|
this.groupBoxConnection.Controls.Add(this.btnDisconnect);
|
this.groupBoxConnection.Controls.Add(this.btnConnect);
|
this.groupBoxConnection.Controls.Add(this.label1);
|
this.groupBoxConnection.Controls.Add(this.btnTestDatabase);
|
this.groupBoxConnection.Controls.Add(this.lblDatabaseStatus);
|
this.groupBoxConnection.Controls.Add(this.label3);
|
this.groupBoxConnection.Location = new System.Drawing.Point(12, 12);
|
this.groupBoxConnection.Name = "groupBoxConnection";
|
this.groupBoxConnection.Size = new System.Drawing.Size(776, 120);
|
this.groupBoxConnection.TabIndex = 0;
|
this.groupBoxConnection.TabStop = false;
|
this.groupBoxConnection.Text = "连接控制和配置";
|
//
|
// btnLoadConfig
|
//
|
this.btnLoadConfig.Location = new System.Drawing.Point(16, 53);
|
this.btnLoadConfig.Name = "btnLoadConfig";
|
this.btnLoadConfig.Size = new System.Drawing.Size(100, 25);
|
this.btnLoadConfig.TabIndex = 6;
|
this.btnLoadConfig.Text = "选择配置文件";
|
this.btnLoadConfig.UseVisualStyleBackColor = true;
|
//
|
// lblConfigPath
|
//
|
this.lblConfigPath.AutoSize = true;
|
this.lblConfigPath.Location = new System.Drawing.Point(150, 58);
|
this.lblConfigPath.Name = "lblConfigPath";
|
this.lblConfigPath.Size = new System.Drawing.Size(80, 17);
|
this.lblConfigPath.TabIndex = 5;
|
this.lblConfigPath.Text = "未加载配置文件";
|
//
|
// label2
|
//
|
this.label2.AutoSize = true;
|
this.label2.Location = new System.Drawing.Point(122, 58);
|
this.label2.Name = "label2";
|
this.label2.Size = new System.Drawing.Size(32, 17);
|
this.label2.TabIndex = 4;
|
this.label2.Text = "配置:";
|
//
|
// lblConnectionStatus
|
//
|
this.lblConnectionStatus.AutoSize = true;
|
this.lblConnectionStatus.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
|
this.lblConnectionStatus.ForeColor = System.Drawing.Color.Red;
|
this.lblConnectionStatus.Location = new System.Drawing.Point(105, 28);
|
this.lblConnectionStatus.Name = "lblConnectionStatus";
|
this.lblConnectionStatus.Size = new System.Drawing.Size(32, 17);
|
this.lblConnectionStatus.TabIndex = 3;
|
this.lblConnectionStatus.Text = "未连接";
|
//
|
// btnDisconnect
|
//
|
this.btnDisconnect.Enabled = false;
|
this.btnDisconnect.Location = new System.Drawing.Point(324, 24);
|
this.btnDisconnect.Name = "btnDisconnect";
|
this.btnDisconnect.Size = new System.Drawing.Size(75, 25);
|
this.btnDisconnect.TabIndex = 2;
|
this.btnDisconnect.Text = "断开连接";
|
this.btnDisconnect.UseVisualStyleBackColor = true;
|
//
|
// btnConnect
|
//
|
this.btnConnect.Location = new System.Drawing.Point(243, 24);
|
this.btnConnect.Name = "btnConnect";
|
this.btnConnect.Size = new System.Drawing.Size(75, 25);
|
this.btnConnect.TabIndex = 1;
|
this.btnConnect.Text = "连接PLC";
|
this.btnConnect.UseVisualStyleBackColor = true;
|
//
|
// label1
|
//
|
this.label1.AutoSize = true;
|
this.label1.Location = new System.Drawing.Point(16, 28);
|
this.label1.Name = "label1";
|
this.label1.Size = new System.Drawing.Size(83, 17);
|
this.label1.TabIndex = 0;
|
this.label1.Text = "PLC连接状态:";
|
//
|
// btnTestDatabase
|
//
|
this.btnTestDatabase.Location = new System.Drawing.Point(405, 24);
|
this.btnTestDatabase.Name = "btnTestDatabase";
|
this.btnTestDatabase.Size = new System.Drawing.Size(80, 25);
|
this.btnTestDatabase.TabIndex = 7;
|
this.btnTestDatabase.Text = "测试数据库";
|
this.btnTestDatabase.UseVisualStyleBackColor = true;
|
//
|
// lblDatabaseStatus
|
//
|
this.lblDatabaseStatus.AutoSize = true;
|
this.lblDatabaseStatus.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
|
this.lblDatabaseStatus.ForeColor = System.Drawing.Color.Gray;
|
this.lblDatabaseStatus.Location = new System.Drawing.Point(556, 28);
|
this.lblDatabaseStatus.Name = "lblDatabaseStatus";
|
this.lblDatabaseStatus.Size = new System.Drawing.Size(56, 17);
|
this.lblDatabaseStatus.TabIndex = 9;
|
this.lblDatabaseStatus.Text = "未检测";
|
//
|
// label3
|
//
|
this.label3.AutoSize = true;
|
this.label3.Location = new System.Drawing.Point(491, 28);
|
this.label3.Name = "label3";
|
this.label3.Size = new System.Drawing.Size(59, 17);
|
this.label3.TabIndex = 8;
|
this.label3.Text = "数据库:";
|
//
|
// groupBoxStats
|
//
|
this.groupBoxStats.Controls.Add(this.lblStats);
|
this.groupBoxStats.Location = new System.Drawing.Point(12, 138);
|
this.groupBoxStats.Name = "groupBoxStats";
|
this.groupBoxStats.Size = new System.Drawing.Size(776, 80);
|
this.groupBoxStats.TabIndex = 1;
|
this.groupBoxStats.TabStop = false;
|
this.groupBoxStats.Text = "通信统计";
|
//
|
// lblStats
|
//
|
this.lblStats.AutoSize = true;
|
this.lblStats.Location = new System.Drawing.Point(16, 25);
|
this.lblStats.Name = "lblStats";
|
this.lblStats.Size = new System.Drawing.Size(200, 17);
|
this.lblStats.TabIndex = 0;
|
this.lblStats.Text = "连接: 0/0 (0%), 读取: 0, 错误: 0";
|
//
|
// groupBoxLog
|
//
|
this.groupBoxLog.Controls.Add(this.btnClearLog);
|
this.groupBoxLog.Controls.Add(this.txtLog);
|
this.groupBoxLog.Location = new System.Drawing.Point(12, 254);
|
this.groupBoxLog.Name = "groupBoxLog";
|
this.groupBoxLog.Size = new System.Drawing.Size(776, 310);
|
this.groupBoxLog.TabIndex = 3;
|
this.groupBoxLog.TabStop = false;
|
this.groupBoxLog.Text = "运行日志和数据";
|
//
|
// btnClearLog
|
//
|
this.btnClearLog.Location = new System.Drawing.Point(695, 22);
|
this.btnClearLog.Name = "btnClearLog";
|
this.btnClearLog.Size = new System.Drawing.Size(75, 25);
|
this.btnClearLog.TabIndex = 1;
|
this.btnClearLog.Text = "清除日志";
|
this.btnClearLog.UseVisualStyleBackColor = true;
|
//
|
// txtLog
|
//
|
this.txtLog.Font = new System.Drawing.Font("Consolas", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
|
this.txtLog.Location = new System.Drawing.Point(16, 53);
|
this.txtLog.Multiline = true;
|
this.txtLog.Name = "txtLog";
|
this.txtLog.ReadOnly = true;
|
this.txtLog.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
|
this.txtLog.Size = new System.Drawing.Size(754, 281);
|
this.txtLog.TabIndex = 0;
|
//
|
// lblDataCount
|
//
|
this.lblDataCount.AutoSize = true;
|
this.lblDataCount.Location = new System.Drawing.Point(12, 224);
|
this.lblDataCount.Name = "lblDataCount";
|
this.lblDataCount.Size = new System.Drawing.Size(80, 17);
|
this.lblDataCount.TabIndex = 4;
|
this.lblDataCount.Text = "数据接收次数: 0";
|
//
|
// Form1
|
//
|
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
this.ClientSize = new System.Drawing.Size(800, 576);
|
this.Controls.Add(this.lblDataCount);
|
this.Controls.Add(this.groupBoxLog);
|
this.Controls.Add(this.groupBoxStats);
|
this.Controls.Add(this.groupBoxConnection);
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
|
this.MaximizeBox = false;
|
this.Name = "Form1";
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
this.Text = "GSModbus - 通用MES与PLC通信系统";
|
this.groupBoxConnection.ResumeLayout(false);
|
this.groupBoxConnection.PerformLayout();
|
this.groupBoxStats.ResumeLayout(false);
|
this.groupBoxStats.PerformLayout();
|
this.groupBoxLog.ResumeLayout(false);
|
this.groupBoxLog.PerformLayout();
|
this.ResumeLayout(false);
|
this.PerformLayout();
|
}
|
|
#endregion
|
|
private System.Windows.Forms.GroupBox groupBoxConnection;
|
private System.Windows.Forms.Button btnLoadConfig;
|
private System.Windows.Forms.Label lblConfigPath;
|
private System.Windows.Forms.Label label2;
|
private System.Windows.Forms.Label lblConnectionStatus;
|
private System.Windows.Forms.Button btnDisconnect;
|
private System.Windows.Forms.Button btnConnect;
|
private System.Windows.Forms.Label label1;
|
private System.Windows.Forms.GroupBox groupBoxStats;
|
private System.Windows.Forms.Label lblStats;
|
private System.Windows.Forms.GroupBox groupBoxLog;
|
private System.Windows.Forms.Button btnClearLog;
|
private System.Windows.Forms.TextBox txtLog;
|
private System.Windows.Forms.Label lblDataCount;
|
private System.Windows.Forms.Button btnTestDatabase;
|
private System.Windows.Forms.Label lblDatabaseStatus;
|
private System.Windows.Forms.Label label3;
|
}
|
}
|