140 lines
5.9 KiB
C#
140 lines
5.9 KiB
C#
|
|
namespace QXXWCX
|
|||
|
|
{
|
|||
|
|
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.btnConnect = new System.Windows.Forms.Button();
|
|||
|
|
this.btnStatueData = new System.Windows.Forms.Button();
|
|||
|
|
this.btnPicture = new System.Windows.Forms.Button();
|
|||
|
|
this.btnRequestPic = new System.Windows.Forms.Button();
|
|||
|
|
this.btnTurnOff = new System.Windows.Forms.Button();
|
|||
|
|
this.rtbMessage = new System.Windows.Forms.RichTextBox();
|
|||
|
|
this.btnClear = new System.Windows.Forms.Button();
|
|||
|
|
this.SuspendLayout();
|
|||
|
|
//
|
|||
|
|
// btnConnect
|
|||
|
|
//
|
|||
|
|
this.btnConnect.Location = new System.Drawing.Point(42, 25);
|
|||
|
|
this.btnConnect.Name = "btnConnect";
|
|||
|
|
this.btnConnect.Size = new System.Drawing.Size(126, 46);
|
|||
|
|
this.btnConnect.TabIndex = 0;
|
|||
|
|
this.btnConnect.Text = "建立连接";
|
|||
|
|
this.btnConnect.UseVisualStyleBackColor = true;
|
|||
|
|
this.btnConnect.Click += new System.EventHandler(this.btnConnect_Click);
|
|||
|
|
//
|
|||
|
|
// btnStatueData
|
|||
|
|
//
|
|||
|
|
this.btnStatueData.Location = new System.Drawing.Point(42, 97);
|
|||
|
|
this.btnStatueData.Name = "btnStatueData";
|
|||
|
|
this.btnStatueData.Size = new System.Drawing.Size(126, 46);
|
|||
|
|
this.btnStatueData.TabIndex = 1;
|
|||
|
|
this.btnStatueData.Text = "查询状态";
|
|||
|
|
this.btnStatueData.UseVisualStyleBackColor = true;
|
|||
|
|
this.btnStatueData.Click += new System.EventHandler(this.btnStatueData_Click);
|
|||
|
|
//
|
|||
|
|
// btnPicture
|
|||
|
|
//
|
|||
|
|
this.btnPicture.Location = new System.Drawing.Point(42, 170);
|
|||
|
|
this.btnPicture.Name = "btnPicture";
|
|||
|
|
this.btnPicture.Size = new System.Drawing.Size(126, 46);
|
|||
|
|
this.btnPicture.TabIndex = 2;
|
|||
|
|
this.btnPicture.Text = "采集图片";
|
|||
|
|
this.btnPicture.UseVisualStyleBackColor = true;
|
|||
|
|
this.btnPicture.Click += new System.EventHandler(this.btnPicture_Click);
|
|||
|
|
//
|
|||
|
|
// btnRequestPic
|
|||
|
|
//
|
|||
|
|
this.btnRequestPic.Location = new System.Drawing.Point(42, 242);
|
|||
|
|
this.btnRequestPic.Name = "btnRequestPic";
|
|||
|
|
this.btnRequestPic.Size = new System.Drawing.Size(126, 46);
|
|||
|
|
this.btnRequestPic.TabIndex = 3;
|
|||
|
|
this.btnRequestPic.Text = "查询图片";
|
|||
|
|
this.btnRequestPic.UseVisualStyleBackColor = true;
|
|||
|
|
this.btnRequestPic.Click += new System.EventHandler(this.btnRequestPic_Click);
|
|||
|
|
//
|
|||
|
|
// btnTurnOff
|
|||
|
|
//
|
|||
|
|
this.btnTurnOff.Location = new System.Drawing.Point(42, 313);
|
|||
|
|
this.btnTurnOff.Name = "btnTurnOff";
|
|||
|
|
this.btnTurnOff.Size = new System.Drawing.Size(126, 46);
|
|||
|
|
this.btnTurnOff.TabIndex = 4;
|
|||
|
|
this.btnTurnOff.Text = "关机";
|
|||
|
|
this.btnTurnOff.UseVisualStyleBackColor = true;
|
|||
|
|
this.btnTurnOff.Click += new System.EventHandler(this.btnTurnOff_Click);
|
|||
|
|
//
|
|||
|
|
// rtbMessage
|
|||
|
|
//
|
|||
|
|
this.rtbMessage.Location = new System.Drawing.Point(219, 30);
|
|||
|
|
this.rtbMessage.Name = "rtbMessage";
|
|||
|
|
this.rtbMessage.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.Vertical;
|
|||
|
|
this.rtbMessage.Size = new System.Drawing.Size(219, 408);
|
|||
|
|
this.rtbMessage.TabIndex = 5;
|
|||
|
|
this.rtbMessage.Text = "";
|
|||
|
|
this.rtbMessage.TextChanged += new System.EventHandler(this.rtbMessage_TextChanged);
|
|||
|
|
//
|
|||
|
|
// btnClear
|
|||
|
|
//
|
|||
|
|
this.btnClear.Location = new System.Drawing.Point(42, 382);
|
|||
|
|
this.btnClear.Name = "btnClear";
|
|||
|
|
this.btnClear.Size = new System.Drawing.Size(126, 46);
|
|||
|
|
this.btnClear.TabIndex = 6;
|
|||
|
|
this.btnClear.Text = "清空";
|
|||
|
|
this.btnClear.UseVisualStyleBackColor = true;
|
|||
|
|
this.btnClear.Click += new System.EventHandler(this.btnClear_Click);
|
|||
|
|
//
|
|||
|
|
// Form1
|
|||
|
|
//
|
|||
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
|||
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|||
|
|
this.ClientSize = new System.Drawing.Size(465, 450);
|
|||
|
|
this.Controls.Add(this.btnClear);
|
|||
|
|
this.Controls.Add(this.rtbMessage);
|
|||
|
|
this.Controls.Add(this.btnTurnOff);
|
|||
|
|
this.Controls.Add(this.btnRequestPic);
|
|||
|
|
this.Controls.Add(this.btnPicture);
|
|||
|
|
this.Controls.Add(this.btnStatueData);
|
|||
|
|
this.Controls.Add(this.btnConnect);
|
|||
|
|
this.Name = "Form1";
|
|||
|
|
this.Text = "Form1";
|
|||
|
|
this.ResumeLayout(false);
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
#endregion
|
|||
|
|
|
|||
|
|
private System.Windows.Forms.Button btnConnect;
|
|||
|
|
private System.Windows.Forms.Button btnStatueData;
|
|||
|
|
private System.Windows.Forms.Button btnPicture;
|
|||
|
|
private System.Windows.Forms.Button btnRequestPic;
|
|||
|
|
private System.Windows.Forms.Button btnTurnOff;
|
|||
|
|
private System.Windows.Forms.RichTextBox rtbMessage;
|
|||
|
|
private System.Windows.Forms.Button btnClear;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|