366 lines
18 KiB
C#
366 lines
18 KiB
C#
namespace MQTT_WinformV1
|
||
{
|
||
partial class Form1
|
||
{
|
||
/// <summary>
|
||
/// 必需的设计器变量。
|
||
/// </summary>
|
||
private System.ComponentModel.IContainer components = null;
|
||
|
||
/// <summary>
|
||
/// 清理所有正在使用的资源。
|
||
/// </summary>
|
||
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
||
protected override void Dispose(bool disposing)
|
||
{
|
||
if (disposing && (components != null))
|
||
{
|
||
components.Dispose();
|
||
}
|
||
base.Dispose(disposing);
|
||
}
|
||
|
||
#region Windows 窗体设计器生成的代码
|
||
|
||
/// <summary>
|
||
/// 设计器支持所需的方法 - 不要修改
|
||
/// 使用代码编辑器修改此方法的内容。
|
||
/// </summary>
|
||
private void InitializeComponent()
|
||
{
|
||
this.components = new System.ComponentModel.Container();
|
||
this.buttonConnect = new System.Windows.Forms.Button();
|
||
this.buttonDisconnect = new System.Windows.Forms.Button();
|
||
this.textBoxLog = new System.Windows.Forms.TextBox();
|
||
this.statusStrip1 = new System.Windows.Forms.StatusStrip();
|
||
this.toolStripStatusLabel1 = new System.Windows.Forms.ToolStripStatusLabel();
|
||
this.panel1 = new System.Windows.Forms.Panel();
|
||
this.comboBox2 = new System.Windows.Forms.ComboBox();
|
||
this.bsPF = new System.Windows.Forms.BindingSource(this.components);
|
||
this.label5 = new System.Windows.Forms.Label();
|
||
this.label4 = new System.Windows.Forms.Label();
|
||
this.label3 = new System.Windows.Forms.Label();
|
||
this.txtLUploadPL = new System.Windows.Forms.TextBox();
|
||
this.label2 = new System.Windows.Forms.Label();
|
||
this.btnRefresh = new System.Windows.Forms.Button();
|
||
this.label1 = new System.Windows.Forms.Label();
|
||
this.comboBox1 = new System.Windows.Forms.ComboBox();
|
||
this.button3 = new System.Windows.Forms.Button();
|
||
this.button2 = new System.Windows.Forms.Button();
|
||
this.button1 = new System.Windows.Forms.Button();
|
||
this.panelLed = new System.Windows.Forms.Panel();
|
||
this.panel3 = new System.Windows.Forms.Panel();
|
||
this.timer1 = new System.Windows.Forms.Timer(this.components);
|
||
this.bsPF2 = new System.Windows.Forms.BindingSource(this.components);
|
||
this.statusStrip1.SuspendLayout();
|
||
this.panel1.SuspendLayout();
|
||
((System.ComponentModel.ISupportInitialize)(this.bsPF)).BeginInit();
|
||
this.panel3.SuspendLayout();
|
||
((System.ComponentModel.ISupportInitialize)(this.bsPF2)).BeginInit();
|
||
this.SuspendLayout();
|
||
//
|
||
// buttonConnect
|
||
//
|
||
this.buttonConnect.BackColor = System.Drawing.Color.GhostWhite;
|
||
this.buttonConnect.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
|
||
this.buttonConnect.FlatAppearance.BorderSize = 10;
|
||
this.buttonConnect.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||
this.buttonConnect.Location = new System.Drawing.Point(9, 8);
|
||
this.buttonConnect.Margin = new System.Windows.Forms.Padding(2);
|
||
this.buttonConnect.Name = "buttonConnect";
|
||
this.buttonConnect.Size = new System.Drawing.Size(75, 28);
|
||
this.buttonConnect.TabIndex = 0;
|
||
this.buttonConnect.Text = "网关连接";
|
||
this.buttonConnect.UseVisualStyleBackColor = false;
|
||
this.buttonConnect.Click += new System.EventHandler(this.buttonConnect_Click);
|
||
//
|
||
// buttonDisconnect
|
||
//
|
||
this.buttonDisconnect.Location = new System.Drawing.Point(106, 8);
|
||
this.buttonDisconnect.Margin = new System.Windows.Forms.Padding(2);
|
||
this.buttonDisconnect.Name = "buttonDisconnect";
|
||
this.buttonDisconnect.Size = new System.Drawing.Size(75, 28);
|
||
this.buttonDisconnect.TabIndex = 1;
|
||
this.buttonDisconnect.Text = "网关断开";
|
||
this.buttonDisconnect.UseVisualStyleBackColor = true;
|
||
this.buttonDisconnect.Click += new System.EventHandler(this.buttonDisconnect_Click);
|
||
//
|
||
// textBoxLog
|
||
//
|
||
this.textBoxLog.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||
| System.Windows.Forms.AnchorStyles.Left)
|
||
| System.Windows.Forms.AnchorStyles.Right)));
|
||
this.textBoxLog.BackColor = System.Drawing.SystemColors.Control;
|
||
this.textBoxLog.Location = new System.Drawing.Point(2, 121);
|
||
this.textBoxLog.Margin = new System.Windows.Forms.Padding(2);
|
||
this.textBoxLog.Multiline = true;
|
||
this.textBoxLog.Name = "textBoxLog";
|
||
this.textBoxLog.ReadOnly = true;
|
||
this.textBoxLog.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
|
||
this.textBoxLog.Size = new System.Drawing.Size(757, 387);
|
||
this.textBoxLog.TabIndex = 2;
|
||
//
|
||
// statusStrip1
|
||
//
|
||
this.statusStrip1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||
this.statusStrip1.Dock = System.Windows.Forms.DockStyle.None;
|
||
this.statusStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);
|
||
this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||
this.toolStripStatusLabel1});
|
||
this.statusStrip1.Location = new System.Drawing.Point(27, 1);
|
||
this.statusStrip1.Name = "statusStrip1";
|
||
this.statusStrip1.Padding = new System.Windows.Forms.Padding(1, 0, 10, 0);
|
||
this.statusStrip1.Size = new System.Drawing.Size(57, 22);
|
||
this.statusStrip1.TabIndex = 3;
|
||
this.statusStrip1.Text = "statusStrip1";
|
||
//
|
||
// toolStripStatusLabel1
|
||
//
|
||
this.toolStripStatusLabel1.Name = "toolStripStatusLabel1";
|
||
this.toolStripStatusLabel1.Size = new System.Drawing.Size(44, 17);
|
||
this.toolStripStatusLabel1.Text = "未连接";
|
||
//
|
||
// panel1
|
||
//
|
||
this.panel1.BackColor = System.Drawing.Color.Gainsboro;
|
||
this.panel1.Controls.Add(this.comboBox2);
|
||
this.panel1.Controls.Add(this.label5);
|
||
this.panel1.Controls.Add(this.label4);
|
||
this.panel1.Controls.Add(this.label3);
|
||
this.panel1.Controls.Add(this.txtLUploadPL);
|
||
this.panel1.Controls.Add(this.label2);
|
||
this.panel1.Controls.Add(this.btnRefresh);
|
||
this.panel1.Controls.Add(this.label1);
|
||
this.panel1.Controls.Add(this.comboBox1);
|
||
this.panel1.Controls.Add(this.button3);
|
||
this.panel1.Controls.Add(this.button2);
|
||
this.panel1.Controls.Add(this.button1);
|
||
this.panel1.Controls.Add(this.buttonConnect);
|
||
this.panel1.Controls.Add(this.buttonDisconnect);
|
||
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
|
||
this.panel1.Location = new System.Drawing.Point(0, 0);
|
||
this.panel1.Margin = new System.Windows.Forms.Padding(2);
|
||
this.panel1.Name = "panel1";
|
||
this.panel1.Size = new System.Drawing.Size(756, 117);
|
||
this.panel1.TabIndex = 4;
|
||
//
|
||
// comboBox2
|
||
//
|
||
this.comboBox2.DataSource = this.bsPF2;
|
||
this.comboBox2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||
this.comboBox2.FormattingEnabled = true;
|
||
this.comboBox2.Location = new System.Drawing.Point(106, 82);
|
||
this.comboBox2.Margin = new System.Windows.Forms.Padding(2);
|
||
this.comboBox2.Name = "comboBox2";
|
||
this.comboBox2.Size = new System.Drawing.Size(290, 20);
|
||
this.comboBox2.TabIndex = 14;
|
||
//
|
||
// label5
|
||
//
|
||
this.label5.AutoSize = true;
|
||
this.label5.BackColor = System.Drawing.Color.Gainsboro;
|
||
this.label5.Font = new System.Drawing.Font("宋体", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||
this.label5.Location = new System.Drawing.Point(18, 84);
|
||
this.label5.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||
this.label5.Name = "label5";
|
||
this.label5.Size = new System.Drawing.Size(84, 14);
|
||
this.label5.TabIndex = 13;
|
||
this.label5.Text = "设备2配方:";
|
||
//
|
||
// label4
|
||
//
|
||
this.label4.AutoSize = true;
|
||
this.label4.Font = new System.Drawing.Font("宋体", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||
this.label4.ForeColor = System.Drawing.Color.Red;
|
||
this.label4.Location = new System.Drawing.Point(579, 15);
|
||
this.label4.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||
this.label4.Name = "label4";
|
||
this.label4.Size = new System.Drawing.Size(159, 15);
|
||
this.label4.TabIndex = 12;
|
||
this.label4.Text = "yyyy-MM-dd HH:mm:ss";
|
||
//
|
||
// label3
|
||
//
|
||
this.label3.AutoSize = true;
|
||
this.label3.Font = new System.Drawing.Font("宋体", 13F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||
this.label3.ForeColor = System.Drawing.Color.Red;
|
||
this.label3.Location = new System.Drawing.Point(486, 14);
|
||
this.label3.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||
this.label3.Name = "label3";
|
||
this.label3.Size = new System.Drawing.Size(98, 18);
|
||
this.label3.TabIndex = 11;
|
||
this.label3.Text = "当前时间:";
|
||
//
|
||
// txtLUploadPL
|
||
//
|
||
this.txtLUploadPL.Location = new System.Drawing.Point(586, 50);
|
||
this.txtLUploadPL.Margin = new System.Windows.Forms.Padding(2);
|
||
this.txtLUploadPL.Name = "txtLUploadPL";
|
||
this.txtLUploadPL.Size = new System.Drawing.Size(80, 21);
|
||
this.txtLUploadPL.TabIndex = 10;
|
||
this.txtLUploadPL.Text = "3600";
|
||
this.txtLUploadPL.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtLUploadPL_KeyPress);
|
||
//
|
||
// label2
|
||
//
|
||
this.label2.AutoSize = true;
|
||
this.label2.Font = new System.Drawing.Font("宋体", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||
this.label2.Location = new System.Drawing.Point(485, 54);
|
||
this.label2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||
this.label2.Name = "label2";
|
||
this.label2.Size = new System.Drawing.Size(105, 14);
|
||
this.label2.TabIndex = 9;
|
||
this.label2.Text = "上传频率(秒):";
|
||
//
|
||
// btnRefresh
|
||
//
|
||
this.btnRefresh.BackColor = System.Drawing.Color.GhostWhite;
|
||
this.btnRefresh.Location = new System.Drawing.Point(418, 50);
|
||
this.btnRefresh.Margin = new System.Windows.Forms.Padding(2);
|
||
this.btnRefresh.Name = "btnRefresh";
|
||
this.btnRefresh.Size = new System.Drawing.Size(53, 24);
|
||
this.btnRefresh.TabIndex = 8;
|
||
this.btnRefresh.Text = "刷新";
|
||
this.btnRefresh.UseVisualStyleBackColor = false;
|
||
this.btnRefresh.Click += new System.EventHandler(this.btnRefresh_Click);
|
||
//
|
||
// label1
|
||
//
|
||
this.label1.AutoSize = true;
|
||
this.label1.BackColor = System.Drawing.Color.Gainsboro;
|
||
this.label1.Font = new System.Drawing.Font("宋体", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||
this.label1.Location = new System.Drawing.Point(19, 54);
|
||
this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||
this.label1.Name = "label1";
|
||
this.label1.Size = new System.Drawing.Size(84, 14);
|
||
this.label1.TabIndex = 6;
|
||
this.label1.Text = "设备1配方:";
|
||
//
|
||
// comboBox1
|
||
//
|
||
this.comboBox1.DataSource = this.bsPF;
|
||
this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||
this.comboBox1.FormattingEnabled = true;
|
||
this.comboBox1.Location = new System.Drawing.Point(106, 52);
|
||
this.comboBox1.Margin = new System.Windows.Forms.Padding(2);
|
||
this.comboBox1.Name = "comboBox1";
|
||
this.comboBox1.Size = new System.Drawing.Size(290, 20);
|
||
this.comboBox1.TabIndex = 5;
|
||
this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
|
||
//
|
||
// button3
|
||
//
|
||
this.button3.Location = new System.Drawing.Point(392, 8);
|
||
this.button3.Margin = new System.Windows.Forms.Padding(2);
|
||
this.button3.Name = "button3";
|
||
this.button3.Size = new System.Drawing.Size(79, 28);
|
||
this.button3.TabIndex = 4;
|
||
this.button3.Text = "中止上传";
|
||
this.button3.UseVisualStyleBackColor = true;
|
||
this.button3.Click += new System.EventHandler(this.button3_Click);
|
||
//
|
||
// button2
|
||
//
|
||
this.button2.Location = new System.Drawing.Point(302, 8);
|
||
this.button2.Margin = new System.Windows.Forms.Padding(2);
|
||
this.button2.Name = "button2";
|
||
this.button2.Size = new System.Drawing.Size(79, 28);
|
||
this.button2.TabIndex = 3;
|
||
this.button2.Text = "上传宜搭";
|
||
this.button2.UseVisualStyleBackColor = true;
|
||
this.button2.Click += new System.EventHandler(this.button2_Click);
|
||
//
|
||
// button1
|
||
//
|
||
this.button1.Location = new System.Drawing.Point(196, 8);
|
||
this.button1.Margin = new System.Windows.Forms.Padding(2);
|
||
this.button1.Name = "button1";
|
||
this.button1.Size = new System.Drawing.Size(91, 28);
|
||
this.button1.TabIndex = 2;
|
||
this.button1.Text = "配方表格导入";
|
||
this.button1.UseVisualStyleBackColor = true;
|
||
this.button1.Click += new System.EventHandler(this.button1_Click);
|
||
//
|
||
// panelLed
|
||
//
|
||
this.panelLed.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||
this.panelLed.BackColor = System.Drawing.Color.Red;
|
||
this.panelLed.Location = new System.Drawing.Point(9, 5);
|
||
this.panelLed.Margin = new System.Windows.Forms.Padding(2);
|
||
this.panelLed.Name = "panelLed";
|
||
this.panelLed.Size = new System.Drawing.Size(15, 16);
|
||
this.panelLed.TabIndex = 5;
|
||
//
|
||
// panel3
|
||
//
|
||
this.panel3.Controls.Add(this.panelLed);
|
||
this.panel3.Controls.Add(this.statusStrip1);
|
||
this.panel3.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||
this.panel3.Location = new System.Drawing.Point(0, 467);
|
||
this.panel3.Margin = new System.Windows.Forms.Padding(2);
|
||
this.panel3.Name = "panel3";
|
||
this.panel3.Size = new System.Drawing.Size(756, 26);
|
||
this.panel3.TabIndex = 7;
|
||
//
|
||
// timer1
|
||
//
|
||
this.timer1.Enabled = true;
|
||
this.timer1.Interval = 1000;
|
||
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
|
||
//
|
||
// Form1
|
||
//
|
||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||
this.ClientSize = new System.Drawing.Size(756, 493);
|
||
this.Controls.Add(this.panel3);
|
||
this.Controls.Add(this.panel1);
|
||
this.Controls.Add(this.textBoxLog);
|
||
this.Margin = new System.Windows.Forms.Padding(2);
|
||
this.Name = "Form1";
|
||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||
this.Text = "孚冈-宜搭数据转发";
|
||
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing);
|
||
this.Load += new System.EventHandler(this.Form1_Load);
|
||
this.statusStrip1.ResumeLayout(false);
|
||
this.statusStrip1.PerformLayout();
|
||
this.panel1.ResumeLayout(false);
|
||
this.panel1.PerformLayout();
|
||
((System.ComponentModel.ISupportInitialize)(this.bsPF)).EndInit();
|
||
this.panel3.ResumeLayout(false);
|
||
this.panel3.PerformLayout();
|
||
((System.ComponentModel.ISupportInitialize)(this.bsPF2)).EndInit();
|
||
this.ResumeLayout(false);
|
||
this.PerformLayout();
|
||
|
||
}
|
||
|
||
#endregion
|
||
|
||
private System.Windows.Forms.Button buttonConnect;
|
||
private System.Windows.Forms.Button buttonDisconnect;
|
||
private System.Windows.Forms.TextBox textBoxLog;
|
||
private System.Windows.Forms.StatusStrip statusStrip1;
|
||
private System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabel1;
|
||
private System.Windows.Forms.Panel panel1;
|
||
private System.Windows.Forms.Label label1;
|
||
private System.Windows.Forms.ComboBox comboBox1;
|
||
private System.Windows.Forms.BindingSource bsPF;
|
||
private System.Windows.Forms.Button button3;
|
||
private System.Windows.Forms.Button button2;
|
||
private System.Windows.Forms.Button button1;
|
||
private System.Windows.Forms.Panel panelLed;
|
||
private System.Windows.Forms.Panel panel3;
|
||
private System.Windows.Forms.Button btnRefresh;
|
||
private System.Windows.Forms.Timer timer1;
|
||
private System.Windows.Forms.TextBox txtLUploadPL;
|
||
private System.Windows.Forms.Label label2;
|
||
private System.Windows.Forms.Label label4;
|
||
private System.Windows.Forms.Label label3;
|
||
private System.Windows.Forms.Label label5;
|
||
private System.Windows.Forms.ComboBox comboBox2;
|
||
private System.Windows.Forms.BindingSource bsPF2;
|
||
}
|
||
}
|
||
|