?? mainform.designer.cs
字號(hào):
namespace TestGsmModem
{
partial class MainForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.gbConnectionDetails = new System.Windows.Forms.GroupBox();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.lblPort = new System.Windows.Forms.Label();
this.txtPort = new System.Windows.Forms.TextBox();
this.lblBaudRate = new System.Windows.Forms.Label();
this.lblDataBits = new System.Windows.Forms.Label();
this.txtBuadRate = new System.Windows.Forms.TextBox();
this.txtDataBits = new System.Windows.Forms.TextBox();
this.lblFlowControl = new System.Windows.Forms.Label();
this.cmbFlowControl = new System.Windows.Forms.ComboBox();
this.lblParity = new System.Windows.Forms.Label();
this.lblStopBits = new System.Windows.Forms.Label();
this.cmbParity = new System.Windows.Forms.ComboBox();
this.btnConnect = new System.Windows.Forms.Button();
this.btnDisconnect = new System.Windows.Forms.Button();
this.cmbStopBits = new System.Windows.Forms.ComboBox();
this.gbLog = new System.Windows.Forms.GroupBox();
this.txtLog = new System.Windows.Forms.TextBox();
this.modem = new Tollkuci.GsmModem.Modem(this.components);
this.gbConnectionDetails.SuspendLayout();
this.tableLayoutPanel1.SuspendLayout();
this.gbLog.SuspendLayout();
this.SuspendLayout();
//
// gbConnectionDetails
//
this.gbConnectionDetails.Controls.Add(this.tableLayoutPanel1);
this.gbConnectionDetails.Location = new System.Drawing.Point(12, 12);
this.gbConnectionDetails.Name = "gbConnectionDetails";
this.gbConnectionDetails.Size = new System.Drawing.Size(573, 87);
this.gbConnectionDetails.TabIndex = 0;
this.gbConnectionDetails.TabStop = false;
this.gbConnectionDetails.Text = "Connect";
//
// tableLayoutPanel1
//
this.tableLayoutPanel1.ColumnCount = 7;
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33334F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33334F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
this.tableLayoutPanel1.Controls.Add(this.lblPort, 0, 0);
this.tableLayoutPanel1.Controls.Add(this.txtPort, 1, 0);
this.tableLayoutPanel1.Controls.Add(this.lblBaudRate, 2, 0);
this.tableLayoutPanel1.Controls.Add(this.lblDataBits, 4, 0);
this.tableLayoutPanel1.Controls.Add(this.txtBuadRate, 3, 0);
this.tableLayoutPanel1.Controls.Add(this.txtDataBits, 5, 0);
this.tableLayoutPanel1.Controls.Add(this.lblFlowControl, 0, 2);
this.tableLayoutPanel1.Controls.Add(this.cmbFlowControl, 1, 2);
this.tableLayoutPanel1.Controls.Add(this.lblParity, 2, 2);
this.tableLayoutPanel1.Controls.Add(this.lblStopBits, 4, 2);
this.tableLayoutPanel1.Controls.Add(this.cmbParity, 3, 2);
this.tableLayoutPanel1.Controls.Add(this.btnConnect, 6, 0);
this.tableLayoutPanel1.Controls.Add(this.btnDisconnect, 6, 2);
this.tableLayoutPanel1.Controls.Add(this.cmbStopBits, 5, 2);
this.tableLayoutPanel1.Location = new System.Drawing.Point(6, 19);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 3;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
this.tableLayoutPanel1.Size = new System.Drawing.Size(561, 61);
this.tableLayoutPanel1.TabIndex = 1;
//
// lblPort
//
this.lblPort.AutoSize = true;
this.lblPort.Location = new System.Drawing.Point(3, 0);
this.lblPort.Name = "lblPort";
this.lblPort.Size = new System.Drawing.Size(26, 13);
this.lblPort.TabIndex = 1;
this.lblPort.Text = "Port";
//
// txtPort
//
this.txtPort.Location = new System.Drawing.Point(74, 3);
this.txtPort.Name = "txtPort";
this.txtPort.Size = new System.Drawing.Size(90, 20);
this.txtPort.TabIndex = 0;
this.txtPort.Text = "COM1";
//
// lblBaudRate
//
this.lblBaudRate.AutoSize = true;
this.lblBaudRate.Location = new System.Drawing.Point(170, 0);
this.lblBaudRate.Name = "lblBaudRate";
this.lblBaudRate.Size = new System.Drawing.Size(58, 13);
this.lblBaudRate.TabIndex = 2;
this.lblBaudRate.Text = "Baud Rate";
//
// lblDataBits
//
this.lblDataBits.AutoSize = true;
this.lblDataBits.Location = new System.Drawing.Point(330, 0);
this.lblDataBits.Name = "lblDataBits";
this.lblDataBits.Size = new System.Drawing.Size(50, 13);
this.lblDataBits.TabIndex = 3;
this.lblDataBits.Text = "Data Bits";
//
// txtBuadRate
//
this.txtBuadRate.Location = new System.Drawing.Point(234, 3);
this.txtBuadRate.Name = "txtBuadRate";
this.txtBuadRate.Size = new System.Drawing.Size(90, 20);
this.txtBuadRate.TabIndex = 4;
this.txtBuadRate.Text = "9600";
//
// txtDataBits
//
this.txtDataBits.Location = new System.Drawing.Point(386, 3);
this.txtDataBits.Name = "txtDataBits";
this.txtDataBits.Size = new System.Drawing.Size(90, 20);
this.txtDataBits.TabIndex = 5;
this.txtDataBits.Text = "8";
//
// lblFlowControl
//
this.lblFlowControl.AutoSize = true;
this.lblFlowControl.Location = new System.Drawing.Point(3, 29);
this.lblFlowControl.Name = "lblFlowControl";
this.lblFlowControl.Size = new System.Drawing.Size(65, 13);
this.lblFlowControl.TabIndex = 6;
this.lblFlowControl.Text = "Flow Control";
//
// cmbFlowControl
//
this.cmbFlowControl.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmbFlowControl.FormattingEnabled = true;
this.cmbFlowControl.Items.AddRange(new object[] {
"None",
"Hardware",
"Software"});
this.cmbFlowControl.Location = new System.Drawing.Point(74, 32);
this.cmbFlowControl.Name = "cmbFlowControl";
this.cmbFlowControl.Size = new System.Drawing.Size(90, 21);
this.cmbFlowControl.TabIndex = 7;
//
// lblParity
//
this.lblParity.AutoSize = true;
this.lblParity.Location = new System.Drawing.Point(170, 29);
this.lblParity.Name = "lblParity";
this.lblParity.Size = new System.Drawing.Size(33, 13);
this.lblParity.TabIndex = 8;
this.lblParity.Text = "Parity";
//
// lblStopBits
//
this.lblStopBits.AutoSize = true;
this.lblStopBits.Location = new System.Drawing.Point(330, 29);
this.lblStopBits.Name = "lblStopBits";
this.lblStopBits.Size = new System.Drawing.Size(49, 13);
this.lblStopBits.TabIndex = 9;
this.lblStopBits.Text = "Stop Bits";
//
// cmbParity
//
this.cmbParity.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmbParity.FormattingEnabled = true;
this.cmbParity.Items.AddRange(new object[] {
"None",
"Odd",
"Even",
"Mark",
"Space"});
this.cmbParity.Location = new System.Drawing.Point(234, 32);
this.cmbParity.Name = "cmbParity";
this.cmbParity.Size = new System.Drawing.Size(90, 21);
this.cmbParity.TabIndex = 10;
//
// btnConnect
//
this.btnConnect.Location = new System.Drawing.Point(482, 3);
this.btnConnect.Name = "btnConnect";
this.btnConnect.Size = new System.Drawing.Size(75, 23);
this.btnConnect.TabIndex = 12;
this.btnConnect.Text = "Connect";
this.btnConnect.UseVisualStyleBackColor = true;
this.btnConnect.Click += new System.EventHandler(this.btnConnect_Click);
//
// btnDisconnect
//
this.btnDisconnect.Location = new System.Drawing.Point(482, 32);
this.btnDisconnect.Name = "btnDisconnect";
this.btnDisconnect.Size = new System.Drawing.Size(75, 23);
this.btnDisconnect.TabIndex = 13;
this.btnDisconnect.Text = "Disconnect";
this.btnDisconnect.UseVisualStyleBackColor = true;
this.btnDisconnect.Click += new System.EventHandler(this.btnDisconnect_Click);
//
// cmbStopBits
//
this.cmbStopBits.FormattingEnabled = true;
this.cmbStopBits.Items.AddRange(new object[] {
"One",
"OnePointFive",
"Two"});
this.cmbStopBits.Location = new System.Drawing.Point(386, 32);
this.cmbStopBits.Name = "cmbStopBits";
this.cmbStopBits.Size = new System.Drawing.Size(90, 21);
this.cmbStopBits.TabIndex = 14;
//
// gbLog
//
this.gbLog.Controls.Add(this.txtLog);
this.gbLog.Location = new System.Drawing.Point(12, 274);
this.gbLog.Name = "gbLog";
this.gbLog.Size = new System.Drawing.Size(573, 100);
this.gbLog.TabIndex = 1;
this.gbLog.TabStop = false;
this.gbLog.Text = "Log";
//
// txtLog
//
this.txtLog.Dock = System.Windows.Forms.DockStyle.Fill;
this.txtLog.Location = new System.Drawing.Point(3, 16);
this.txtLog.Multiline = true;
this.txtLog.Name = "txtLog";
this.txtLog.Size = new System.Drawing.Size(567, 81);
this.txtLog.TabIndex = 0;
//
// modem
//
this.modem.BaudRate = 9600;
this.modem.DataBits = 8;
this.modem.FlowControl = Tollkuci.GsmModem.FlowControl.None;
this.modem.IsConnected = false;
this.modem.MessageMemory = Tollkuci.GsmModem.MessageMemory.SM;
this.modem.Parity = Tollkuci.GsmModem.Parity.None;
this.modem.Pin = null;
this.modem.Port = "COM1";
this.modem.StopBits = Tollkuci.GsmModem.StopBits.One;
this.modem.NewMessageReceived += new System.EventHandler<Tollkuci.GsmModem.MessageEventArgs>(this.modem_NewMessageReceived);
this.modem.Disconnected += new System.EventHandler(this.modem_Disconnected);
this.modem.Connected += new System.EventHandler(this.modem_Connected);
//
// MainForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(597, 386);
this.Controls.Add(this.gbLog);
this.Controls.Add(this.gbConnectionDetails);
this.Name = "MainForm";
this.Text = "Test Gsm Modem";
this.gbConnectionDetails.ResumeLayout(false);
this.tableLayoutPanel1.ResumeLayout(false);
this.tableLayoutPanel1.PerformLayout();
this.gbLog.ResumeLayout(false);
this.gbLog.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.GroupBox gbConnectionDetails;
private System.Windows.Forms.Label lblPort;
private System.Windows.Forms.TextBox txtPort;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private System.Windows.Forms.Label lblBaudRate;
private System.Windows.Forms.Label lblDataBits;
private System.Windows.Forms.TextBox txtBuadRate;
private System.Windows.Forms.TextBox txtDataBits;
private System.Windows.Forms.Label lblFlowControl;
private System.Windows.Forms.ComboBox cmbFlowControl;
private System.Windows.Forms.Label lblParity;
private System.Windows.Forms.Label lblStopBits;
private System.Windows.Forms.ComboBox cmbParity;
private System.Windows.Forms.Button btnConnect;
private System.Windows.Forms.Button btnDisconnect;
private Tollkuci.GsmModem.Modem modem;
private System.Windows.Forms.ComboBox cmbStopBits;
private System.Windows.Forms.GroupBox gbLog;
private System.Windows.Forms.TextBox txtLog;
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -