⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 form1.cs

📁 [SMS SDK V1.7 测试说明] 1)“接口库”为SDK库包其中: Release —— 发布的稳定库 Debug —— 为调试库 2)“演示代码”为测试代码目录。
💻 CS
📖 第 1 页 / 共 2 页
字号:
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 + -