?? form1.cs
字號:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
namespace TestForCSharp
{
/// <summary>
/// Form1 的摘要說明。
/// </summary>
public class TestGSM : System.Windows.Forms.Form
{
internal System.Windows.Forms.GroupBox GroupBox1;
internal System.Windows.Forms.Label Label11;
internal System.Windows.Forms.Label Label10;
internal System.Windows.Forms.Label Label9;
internal System.Windows.Forms.TextBox Baud;
internal System.Windows.Forms.Label Label8;
internal System.Windows.Forms.TextBox Device;
internal System.Windows.Forms.Label Label3;
internal System.Windows.Forms.TextBox cwxx;
internal System.Windows.Forms.Button Button2;
internal System.Windows.Forms.Label Label2;
internal System.Windows.Forms.TextBox sqhm;
internal System.Windows.Forms.TextBox jqhm;
internal System.Windows.Forms.Button Button1;
internal System.Windows.Forms.GroupBox GroupBox3;
internal System.Windows.Forms.Button Button5;
internal System.Windows.Forms.Label Label7;
internal System.Windows.Forms.TextBox jsnr;
internal System.Windows.Forms.Label Label6;
internal System.Windows.Forms.Button Button4;
internal System.Windows.Forms.GroupBox GroupBox2;
internal System.Windows.Forms.Button Button3;
internal System.Windows.Forms.TextBox fsnr;
internal System.Windows.Forms.TextBox jshm;
internal System.Windows.Forms.Label Label5;
internal System.Windows.Forms.Label Label4;
internal System.Windows.Forms.Label Label1;
internal System.Windows.Forms.Label Label12;
/// <summary>
/// 必需的設計器變量。
/// </summary>
private System.ComponentModel.Container components = null;
public TestGSM()
{
//
// Windows 窗體設計器支持所必需的
//
InitializeComponent();
//
// TODO: 在 InitializeComponent 調用后添加任何構造函數代碼
//
}
/// <summary>
/// 清理所有正在使用的資源。
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows Form Designer generated code
/// <summary>
/// 設計器支持所需的方法 - 不要使用代碼編輯器修改
/// 此方法的內容。
/// </summary>
private void InitializeComponent()
{
this.GroupBox1 = new System.Windows.Forms.GroupBox();
this.Label11 = new System.Windows.Forms.Label();
this.Label10 = new System.Windows.Forms.Label();
this.Label9 = new System.Windows.Forms.Label();
this.Baud = new System.Windows.Forms.TextBox();
this.Label8 = new System.Windows.Forms.Label();
this.Device = new System.Windows.Forms.TextBox();
this.Label3 = new System.Windows.Forms.Label();
this.cwxx = new System.Windows.Forms.TextBox();
this.Button2 = new System.Windows.Forms.Button();
this.Label2 = new System.Windows.Forms.Label();
this.sqhm = new System.Windows.Forms.TextBox();
this.jqhm = new System.Windows.Forms.TextBox();
this.Button1 = new System.Windows.Forms.Button();
this.GroupBox3 = new System.Windows.Forms.GroupBox();
this.Button5 = new System.Windows.Forms.Button();
this.Label7 = new System.Windows.Forms.Label();
this.jsnr = new System.Windows.Forms.TextBox();
this.Label6 = new System.Windows.Forms.Label();
this.Button4 = new System.Windows.Forms.Button();
this.GroupBox2 = new System.Windows.Forms.GroupBox();
this.Button3 = new System.Windows.Forms.Button();
this.fsnr = new System.Windows.Forms.TextBox();
this.jshm = new System.Windows.Forms.TextBox();
this.Label5 = new System.Windows.Forms.Label();
this.Label4 = new System.Windows.Forms.Label();
this.Label1 = new System.Windows.Forms.Label();
this.Label12 = new System.Windows.Forms.Label();
this.GroupBox1.SuspendLayout();
this.GroupBox3.SuspendLayout();
this.GroupBox2.SuspendLayout();
this.SuspendLayout();
//
// GroupBox1
//
this.GroupBox1.Controls.AddRange(new System.Windows.Forms.Control[] {
this.Label11,
this.Label10,
this.Label9,
this.Baud,
this.Label8,
this.Device,
this.Label3,
this.cwxx,
this.Button2,
this.Label2,
this.sqhm,
this.jqhm,
this.Button1});
this.GroupBox1.Location = new System.Drawing.Point(16, 48);
this.GroupBox1.Name = "GroupBox1";
this.GroupBox1.Size = new System.Drawing.Size(592, 168);
this.GroupBox1.TabIndex = 2;
this.GroupBox1.TabStop = false;
this.GroupBox1.Text = "系統信息";
//
// Label11
//
this.Label11.BackColor = System.Drawing.Color.AliceBlue;
this.Label11.ForeColor = System.Drawing.Color.Black;
this.Label11.Location = new System.Drawing.Point(408, 24);
this.Label11.Name = "Label11";
this.Label11.Size = new System.Drawing.Size(176, 24);
this.Label11.TabIndex = 14;
this.Label11.Text = "*若不指定系統會自動檢測。";
//
// Label10
//
this.Label10.BackColor = System.Drawing.Color.AliceBlue;
this.Label10.ForeColor = System.Drawing.Color.Black;
this.Label10.Location = new System.Drawing.Point(408, 56);
this.Label10.Name = "Label10";
this.Label10.Size = new System.Drawing.Size(176, 24);
this.Label10.TabIndex = 13;
this.Label10.Text = "*發送給廠商生成授權號碼。";
//
// Label9
//
this.Label9.Location = new System.Drawing.Point(280, 32);
this.Label9.Name = "Label9";
this.Label9.Size = new System.Drawing.Size(48, 16);
this.Label9.TabIndex = 12;
this.Label9.Text = "波特率";
//
// Baud
//
this.Baud.Location = new System.Drawing.Point(328, 24);
this.Baud.Name = "Baud";
this.Baud.Size = new System.Drawing.Size(72, 21);
this.Baud.TabIndex = 11;
this.Baud.Text = "";
//
// Label8
//
this.Label8.Location = new System.Drawing.Point(112, 32);
this.Label8.Name = "Label8";
this.Label8.Size = new System.Drawing.Size(32, 23);
this.Label8.TabIndex = 10;
this.Label8.Text = "端口";
//
// Device
//
this.Device.Location = new System.Drawing.Point(152, 24);
this.Device.Name = "Device";
this.Device.Size = new System.Drawing.Size(80, 21);
this.Device.TabIndex = 8;
this.Device.Text = "";
//
// Label3
//
this.Label3.BackColor = System.Drawing.Color.AliceBlue;
this.Label3.ForeColor = System.Drawing.Color.Black;
this.Label3.Location = new System.Drawing.Point(408, 88);
this.Label3.Name = "Label3";
this.Label3.Size = new System.Drawing.Size(176, 24);
this.Label3.TabIndex = 6;
this.Label3.Text = "*由廠商根據機器號碼產生。";
//
// cwxx
//
this.cwxx.Location = new System.Drawing.Point(112, 120);
this.cwxx.Multiline = true;
this.cwxx.Name = "cwxx";
this.cwxx.Size = new System.Drawing.Size(472, 40);
this.cwxx.TabIndex = 5;
this.cwxx.Text = "";
//
// Button2
//
this.Button2.Location = new System.Drawing.Point(24, 120);
this.Button2.Name = "Button2";
this.Button2.TabIndex = 4;
this.Button2.Text = "錯誤信息";
//
// Label2
//
this.Label2.Location = new System.Drawing.Point(40, 96);
this.Label2.Name = "Label2";
this.Label2.Size = new System.Drawing.Size(56, 16);
this.Label2.TabIndex = 3;
this.Label2.Text = "授權號碼";
//
// sqhm
//
this.sqhm.Location = new System.Drawing.Point(112, 88);
this.sqhm.Name = "sqhm";
this.sqhm.Size = new System.Drawing.Size(288, 21);
this.sqhm.TabIndex = 2;
this.sqhm.Text = "RIWT-DGFI-CFWW-GIWQ";
//
// jqhm
//
this.jqhm.Location = new System.Drawing.Point(112, 56);
this.jqhm.Name = "jqhm";
this.jqhm.Size = new System.Drawing.Size(288, 21);
this.jqhm.TabIndex = 1;
this.jqhm.Text = "";
//
// Button1
//
this.Button1.Location = new System.Drawing.Point(24, 56);
this.Button1.Name = "Button1";
this.Button1.TabIndex = 0;
this.Button1.Text = "機器號碼";
this.Button1.Click += new System.EventHandler(this.Button1_Click);
//
// GroupBox3
//
this.GroupBox3.Controls.AddRange(new System.Windows.Forms.Control[] {
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -