ab56a9bcf7
SVN-Revision: r240
359 lines
17 KiB
C#
359 lines
17 KiB
C#
|
|
namespace MQTTClient
|
|
{
|
|
partial class FrmMain
|
|
{
|
|
/// <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.dbInfoPanel = new System.Windows.Forms.Panel();
|
|
this.subscribeBtn = new System.Windows.Forms.Button();
|
|
this.passwordBox = new System.Windows.Forms.TextBox();
|
|
this.passwordLab = new System.Windows.Forms.Label();
|
|
this.userIdBox = new System.Windows.Forms.TextBox();
|
|
this.userIdLab = new System.Windows.Forms.Label();
|
|
this.databaseBox = new System.Windows.Forms.TextBox();
|
|
this.databaseLab = new System.Windows.Forms.Label();
|
|
this.serverBox = new System.Windows.Forms.TextBox();
|
|
this.serverLab = new System.Windows.Forms.Label();
|
|
this.mainGridControl = new DevExpress.XtraGrid.GridControl();
|
|
this.mainGridView = new DevExpress.XtraGrid.Views.Grid.GridView();
|
|
this.id = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
this.title = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
this.mqttServer = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
this.mqttPort = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
this.mqttUserName = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
this.mqttPassword = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
this.clientId = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
this.topic = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
this.connectState = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
this.msg = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
this.dbInfoPanel.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize)(this.mainGridControl)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.mainGridView)).BeginInit();
|
|
this.SuspendLayout();
|
|
//
|
|
// dbInfoPanel
|
|
//
|
|
this.dbInfoPanel.Controls.Add(this.subscribeBtn);
|
|
this.dbInfoPanel.Controls.Add(this.passwordBox);
|
|
this.dbInfoPanel.Controls.Add(this.passwordLab);
|
|
this.dbInfoPanel.Controls.Add(this.userIdBox);
|
|
this.dbInfoPanel.Controls.Add(this.userIdLab);
|
|
this.dbInfoPanel.Controls.Add(this.databaseBox);
|
|
this.dbInfoPanel.Controls.Add(this.databaseLab);
|
|
this.dbInfoPanel.Controls.Add(this.serverBox);
|
|
this.dbInfoPanel.Controls.Add(this.serverLab);
|
|
this.dbInfoPanel.Dock = System.Windows.Forms.DockStyle.Top;
|
|
this.dbInfoPanel.Location = new System.Drawing.Point(0, 0);
|
|
this.dbInfoPanel.Name = "dbInfoPanel";
|
|
this.dbInfoPanel.Size = new System.Drawing.Size(1049, 85);
|
|
this.dbInfoPanel.TabIndex = 5;
|
|
//
|
|
// subscribeBtn
|
|
//
|
|
this.subscribeBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
|
this.subscribeBtn.Font = new System.Drawing.Font("微软雅黑", 10.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
this.subscribeBtn.Location = new System.Drawing.Point(962, 9);
|
|
this.subscribeBtn.Name = "subscribeBtn";
|
|
this.subscribeBtn.Size = new System.Drawing.Size(75, 68);
|
|
this.subscribeBtn.TabIndex = 9;
|
|
this.subscribeBtn.Text = "开始";
|
|
this.subscribeBtn.UseVisualStyleBackColor = true;
|
|
//
|
|
// passwordBox
|
|
//
|
|
this.passwordBox.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
this.passwordBox.Location = new System.Drawing.Point(513, 45);
|
|
this.passwordBox.Name = "passwordBox";
|
|
this.passwordBox.PasswordChar = '●';
|
|
this.passwordBox.Size = new System.Drawing.Size(250, 27);
|
|
this.passwordBox.TabIndex = 8;
|
|
//
|
|
// passwordLab
|
|
//
|
|
this.passwordLab.AutoSize = true;
|
|
this.passwordLab.Font = new System.Drawing.Font("微软雅黑", 10.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
this.passwordLab.Location = new System.Drawing.Point(438, 45);
|
|
this.passwordLab.Name = "passwordLab";
|
|
this.passwordLab.Size = new System.Drawing.Size(69, 25);
|
|
this.passwordLab.TabIndex = 7;
|
|
this.passwordLab.Text = "密码:";
|
|
this.passwordLab.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
|
//
|
|
// userIdBox
|
|
//
|
|
this.userIdBox.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
this.userIdBox.Location = new System.Drawing.Point(144, 45);
|
|
this.userIdBox.Name = "userIdBox";
|
|
this.userIdBox.Size = new System.Drawing.Size(250, 27);
|
|
this.userIdBox.TabIndex = 6;
|
|
//
|
|
// userIdLab
|
|
//
|
|
this.userIdLab.AutoSize = true;
|
|
this.userIdLab.Font = new System.Drawing.Font("微软雅黑", 10.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
this.userIdLab.Location = new System.Drawing.Point(50, 45);
|
|
this.userIdLab.Name = "userIdLab";
|
|
this.userIdLab.Size = new System.Drawing.Size(88, 25);
|
|
this.userIdLab.TabIndex = 5;
|
|
this.userIdLab.Text = "登录名:";
|
|
this.userIdLab.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
|
//
|
|
// databaseBox
|
|
//
|
|
this.databaseBox.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
this.databaseBox.Location = new System.Drawing.Point(513, 12);
|
|
this.databaseBox.Name = "databaseBox";
|
|
this.databaseBox.Size = new System.Drawing.Size(250, 27);
|
|
this.databaseBox.TabIndex = 4;
|
|
//
|
|
// databaseLab
|
|
//
|
|
this.databaseLab.AutoSize = true;
|
|
this.databaseLab.Font = new System.Drawing.Font("微软雅黑", 10.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
this.databaseLab.Location = new System.Drawing.Point(400, 12);
|
|
this.databaseLab.Name = "databaseLab";
|
|
this.databaseLab.Size = new System.Drawing.Size(107, 25);
|
|
this.databaseLab.TabIndex = 3;
|
|
this.databaseLab.Text = "数据库名:";
|
|
this.databaseLab.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
|
//
|
|
// serverBox
|
|
//
|
|
this.serverBox.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
this.serverBox.Location = new System.Drawing.Point(144, 12);
|
|
this.serverBox.Name = "serverBox";
|
|
this.serverBox.Size = new System.Drawing.Size(250, 27);
|
|
this.serverBox.TabIndex = 2;
|
|
//
|
|
// serverLab
|
|
//
|
|
this.serverLab.AutoSize = true;
|
|
this.serverLab.Font = new System.Drawing.Font("微软雅黑", 10.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
this.serverLab.Location = new System.Drawing.Point(12, 12);
|
|
this.serverLab.Name = "serverLab";
|
|
this.serverLab.Size = new System.Drawing.Size(126, 25);
|
|
this.serverLab.TabIndex = 0;
|
|
this.serverLab.Text = "服务器地址:";
|
|
this.serverLab.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
|
//
|
|
// mainGridControl
|
|
//
|
|
this.mainGridControl.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this.mainGridControl.Location = new System.Drawing.Point(0, 85);
|
|
this.mainGridControl.MainView = this.mainGridView;
|
|
this.mainGridControl.Name = "mainGridControl";
|
|
this.mainGridControl.Size = new System.Drawing.Size(1049, 554);
|
|
this.mainGridControl.TabIndex = 6;
|
|
this.mainGridControl.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
|
|
this.mainGridView});
|
|
//
|
|
// mainGridView
|
|
//
|
|
this.mainGridView.Appearance.HeaderPanel.Font = new System.Drawing.Font("微软雅黑", 10.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.mainGridView.Appearance.HeaderPanel.Options.UseFont = true;
|
|
this.mainGridView.Appearance.HeaderPanel.Options.UseTextOptions = true;
|
|
this.mainGridView.Appearance.HeaderPanel.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
|
|
this.mainGridView.Appearance.HeaderPanel.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
|
|
this.mainGridView.Appearance.Row.Font = new System.Drawing.Font("微软雅黑", 10.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.mainGridView.Appearance.Row.Options.UseFont = true;
|
|
this.mainGridView.Appearance.Row.Options.UseTextOptions = true;
|
|
this.mainGridView.Appearance.Row.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
|
|
this.mainGridView.Appearance.Row.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
|
|
this.mainGridView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
|
|
this.id,
|
|
this.title,
|
|
this.mqttServer,
|
|
this.mqttPort,
|
|
this.mqttUserName,
|
|
this.mqttPassword,
|
|
this.clientId,
|
|
this.topic,
|
|
this.connectState,
|
|
this.msg});
|
|
this.mainGridView.GridControl = this.mainGridControl;
|
|
this.mainGridView.IndicatorWidth = 60;
|
|
this.mainGridView.Name = "mainGridView";
|
|
this.mainGridView.OptionsBehavior.Editable = false;
|
|
this.mainGridView.OptionsCustomization.AllowFilter = false;
|
|
this.mainGridView.OptionsCustomization.AllowSort = false;
|
|
this.mainGridView.OptionsView.ShowFilterPanelMode = DevExpress.XtraGrid.Views.Base.ShowFilterPanelMode.Never;
|
|
this.mainGridView.OptionsView.ShowGroupPanel = false;
|
|
//
|
|
// id
|
|
//
|
|
this.id.Caption = "序号";
|
|
this.id.FieldName = "id";
|
|
this.id.Name = "id";
|
|
this.id.Width = 30;
|
|
//
|
|
// title
|
|
//
|
|
this.title.Caption = "设备名称";
|
|
this.title.FieldName = "title";
|
|
this.title.MaxWidth = 200;
|
|
this.title.MinWidth = 150;
|
|
this.title.Name = "title";
|
|
this.title.Visible = true;
|
|
this.title.VisibleIndex = 0;
|
|
this.title.Width = 150;
|
|
//
|
|
// mqttServer
|
|
//
|
|
this.mqttServer.Caption = "连接地址";
|
|
this.mqttServer.FieldName = "mqttServer";
|
|
this.mqttServer.MaxWidth = 200;
|
|
this.mqttServer.MinWidth = 150;
|
|
this.mqttServer.Name = "mqttServer";
|
|
this.mqttServer.Visible = true;
|
|
this.mqttServer.VisibleIndex = 1;
|
|
this.mqttServer.Width = 150;
|
|
//
|
|
// mqttPort
|
|
//
|
|
this.mqttPort.Caption = "连接端口";
|
|
this.mqttPort.FieldName = "mqttPort";
|
|
this.mqttPort.MaxWidth = 200;
|
|
this.mqttPort.MinWidth = 100;
|
|
this.mqttPort.Name = "mqttPort";
|
|
this.mqttPort.Visible = true;
|
|
this.mqttPort.VisibleIndex = 2;
|
|
this.mqttPort.Width = 100;
|
|
//
|
|
// mqttUserName
|
|
//
|
|
this.mqttUserName.Caption = "登录名";
|
|
this.mqttUserName.FieldName = "mqttUserName";
|
|
this.mqttUserName.MaxWidth = 200;
|
|
this.mqttUserName.MinWidth = 150;
|
|
this.mqttUserName.Name = "mqttUserName";
|
|
this.mqttUserName.Visible = true;
|
|
this.mqttUserName.VisibleIndex = 3;
|
|
this.mqttUserName.Width = 150;
|
|
//
|
|
// mqttPassword
|
|
//
|
|
this.mqttPassword.Caption = "登录密码";
|
|
this.mqttPassword.FieldName = "mqttPassword";
|
|
this.mqttPassword.MaxWidth = 200;
|
|
this.mqttPassword.MinWidth = 150;
|
|
this.mqttPassword.Name = "mqttPassword";
|
|
this.mqttPassword.Visible = true;
|
|
this.mqttPassword.VisibleIndex = 4;
|
|
this.mqttPassword.Width = 150;
|
|
//
|
|
// clientId
|
|
//
|
|
this.clientId.Caption = "客户端编码";
|
|
this.clientId.FieldName = "clientId";
|
|
this.clientId.MaxWidth = 200;
|
|
this.clientId.MinWidth = 150;
|
|
this.clientId.Name = "clientId";
|
|
this.clientId.Visible = true;
|
|
this.clientId.VisibleIndex = 5;
|
|
this.clientId.Width = 150;
|
|
//
|
|
// topic
|
|
//
|
|
this.topic.Caption = "订阅主题";
|
|
this.topic.FieldName = "topic";
|
|
this.topic.MaxWidth = 200;
|
|
this.topic.MinWidth = 100;
|
|
this.topic.Name = "topic";
|
|
this.topic.Visible = true;
|
|
this.topic.VisibleIndex = 6;
|
|
this.topic.Width = 100;
|
|
//
|
|
// connectState
|
|
//
|
|
this.connectState.Caption = "连接状态";
|
|
this.connectState.FieldName = "connectState";
|
|
this.connectState.MaxWidth = 200;
|
|
this.connectState.MinWidth = 100;
|
|
this.connectState.Name = "connectState";
|
|
this.connectState.Visible = true;
|
|
this.connectState.VisibleIndex = 7;
|
|
this.connectState.Width = 100;
|
|
//
|
|
// msg
|
|
//
|
|
this.msg.Caption = "提示信息";
|
|
this.msg.FieldName = "msg";
|
|
this.msg.MaxWidth = 800;
|
|
this.msg.MinWidth = 400;
|
|
this.msg.Name = "msg";
|
|
this.msg.Visible = true;
|
|
this.msg.VisibleIndex = 8;
|
|
this.msg.Width = 400;
|
|
//
|
|
// FrmMain
|
|
//
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
this.ClientSize = new System.Drawing.Size(1049, 639);
|
|
this.Controls.Add(this.mainGridControl);
|
|
this.Controls.Add(this.dbInfoPanel);
|
|
this.Name = "FrmMain";
|
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
|
this.Text = "MQTTClient";
|
|
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
|
|
this.dbInfoPanel.ResumeLayout(false);
|
|
this.dbInfoPanel.PerformLayout();
|
|
((System.ComponentModel.ISupportInitialize)(this.mainGridControl)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.mainGridView)).EndInit();
|
|
this.ResumeLayout(false);
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
private System.Windows.Forms.Panel dbInfoPanel;
|
|
private DevExpress.XtraGrid.GridControl mainGridControl;
|
|
private DevExpress.XtraGrid.Views.Grid.GridView mainGridView;
|
|
private DevExpress.XtraGrid.Columns.GridColumn id;
|
|
private DevExpress.XtraGrid.Columns.GridColumn title;
|
|
private DevExpress.XtraGrid.Columns.GridColumn mqttServer;
|
|
private DevExpress.XtraGrid.Columns.GridColumn mqttPort;
|
|
private DevExpress.XtraGrid.Columns.GridColumn mqttUserName;
|
|
private DevExpress.XtraGrid.Columns.GridColumn mqttPassword;
|
|
private DevExpress.XtraGrid.Columns.GridColumn topic;
|
|
private DevExpress.XtraGrid.Columns.GridColumn connectState;
|
|
private DevExpress.XtraGrid.Columns.GridColumn msg;
|
|
private System.Windows.Forms.TextBox databaseBox;
|
|
private System.Windows.Forms.Label databaseLab;
|
|
private System.Windows.Forms.TextBox serverBox;
|
|
private System.Windows.Forms.Label serverLab;
|
|
private System.Windows.Forms.TextBox passwordBox;
|
|
private System.Windows.Forms.Label passwordLab;
|
|
private System.Windows.Forms.TextBox userIdBox;
|
|
private System.Windows.Forms.Label userIdLab;
|
|
private System.Windows.Forms.Button subscribeBtn;
|
|
private DevExpress.XtraGrid.Columns.GridColumn clientId;
|
|
}
|
|
}
|
|
|