288 lines
14 KiB
C#
288 lines
14 KiB
C#
namespace NetworkDemo
|
||
{
|
||
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.components = new System.ComponentModel.Container();
|
||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
|
||
this.timer1 = new System.Windows.Forms.Timer();
|
||
this.rbGprs = new System.Windows.Forms.RadioButton();
|
||
this.rbWlan = new System.Windows.Forms.RadioButton();
|
||
this.label1 = new System.Windows.Forms.Label();
|
||
this.panel1 = new System.Windows.Forms.Panel();
|
||
this.btnNetChange = new System.Windows.Forms.Button();
|
||
this.label2 = new System.Windows.Forms.Label();
|
||
this.label3 = new System.Windows.Forms.Label();
|
||
this.label4 = new System.Windows.Forms.Label();
|
||
this.lblNetStatus = new System.Windows.Forms.Label();
|
||
this.lblNetType = new System.Windows.Forms.Label();
|
||
this.lblSignalStrength = new System.Windows.Forms.Label();
|
||
this.panel2 = new System.Windows.Forms.Panel();
|
||
this.picClose = new PDADemo.PictureControl();
|
||
this.signalStatus = new PDADemo.PictureControl();
|
||
this.netStatus = new PDADemo.PictureControl();
|
||
this.batteryStatus = new PDADemo.PictureControl();
|
||
this.gbtnCloseNetwork = new System.Windows.Forms.Button();
|
||
this.imageButton1 = new PDADemo.ImageButton();
|
||
this.inputPanel1 = new Microsoft.WindowsCE.Forms.InputPanel(this.components);
|
||
this.contextMenu1 = new System.Windows.Forms.ContextMenu();
|
||
this.panel1.SuspendLayout();
|
||
this.panel2.SuspendLayout();
|
||
this.SuspendLayout();
|
||
//
|
||
// timer1
|
||
//
|
||
this.timer1.Enabled = true;
|
||
this.timer1.Interval = 1000;
|
||
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
|
||
//
|
||
// rbGprs
|
||
//
|
||
this.rbGprs.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Regular);
|
||
this.rbGprs.Location = new System.Drawing.Point(101, 29);
|
||
this.rbGprs.Name = "rbGprs";
|
||
this.rbGprs.Size = new System.Drawing.Size(62, 20);
|
||
this.rbGprs.TabIndex = 11;
|
||
this.rbGprs.TabStop = false;
|
||
this.rbGprs.Text = "GPRS";
|
||
//
|
||
// rbWlan
|
||
//
|
||
this.rbWlan.Checked = true;
|
||
this.rbWlan.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Regular);
|
||
this.rbWlan.Location = new System.Drawing.Point(31, 29);
|
||
this.rbWlan.Name = "rbWlan";
|
||
this.rbWlan.Size = new System.Drawing.Size(53, 20);
|
||
this.rbWlan.TabIndex = 12;
|
||
this.rbWlan.Text = "WIFI";
|
||
//
|
||
// label1
|
||
//
|
||
this.label1.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Regular);
|
||
this.label1.Location = new System.Drawing.Point(1, 1);
|
||
this.label1.Name = "label1";
|
||
this.label1.Size = new System.Drawing.Size(100, 20);
|
||
this.label1.Text = "可选网络类型";
|
||
//
|
||
// panel1
|
||
//
|
||
this.panel1.BackColor = System.Drawing.SystemColors.ActiveCaptionText;
|
||
this.panel1.Controls.Add(this.rbWlan);
|
||
this.panel1.Controls.Add(this.label1);
|
||
this.panel1.Controls.Add(this.rbGprs);
|
||
this.panel1.Location = new System.Drawing.Point(25, 125);
|
||
this.panel1.Name = "panel1";
|
||
this.panel1.Size = new System.Drawing.Size(191, 55);
|
||
//
|
||
// btnNetChange
|
||
//
|
||
this.btnNetChange.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Regular);
|
||
this.btnNetChange.Location = new System.Drawing.Point(32, 198);
|
||
this.btnNetChange.Name = "btnNetChange";
|
||
this.btnNetChange.Size = new System.Drawing.Size(68, 27);
|
||
this.btnNetChange.TabIndex = 15;
|
||
this.btnNetChange.Text = "连接网络";
|
||
this.btnNetChange.Click += new System.EventHandler(this.btnNetChange_Click);
|
||
//
|
||
// label2
|
||
//
|
||
this.label2.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Regular);
|
||
this.label2.Location = new System.Drawing.Point(10, 49);
|
||
this.label2.Name = "label2";
|
||
this.label2.Size = new System.Drawing.Size(100, 20);
|
||
this.label2.Text = "当前网络状态:";
|
||
//
|
||
// label3
|
||
//
|
||
this.label3.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Regular);
|
||
this.label3.Location = new System.Drawing.Point(10, 69);
|
||
this.label3.Name = "label3";
|
||
this.label3.Size = new System.Drawing.Size(100, 20);
|
||
this.label3.Text = "当前网络类型:";
|
||
//
|
||
// label4
|
||
//
|
||
this.label4.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Regular);
|
||
this.label4.Location = new System.Drawing.Point(10, 89);
|
||
this.label4.Name = "label4";
|
||
this.label4.Size = new System.Drawing.Size(125, 20);
|
||
this.label4.Text = "当前网络信号强度:";
|
||
//
|
||
// lblNetStatus
|
||
//
|
||
this.lblNetStatus.Font = new System.Drawing.Font("Tahoma", 10F, System.Drawing.FontStyle.Bold);
|
||
this.lblNetStatus.ForeColor = System.Drawing.Color.Blue;
|
||
this.lblNetStatus.Location = new System.Drawing.Point(125, 49);
|
||
this.lblNetStatus.Name = "lblNetStatus";
|
||
this.lblNetStatus.Size = new System.Drawing.Size(110, 20);
|
||
this.lblNetStatus.Text = "未连接";
|
||
//
|
||
// lblNetType
|
||
//
|
||
this.lblNetType.Font = new System.Drawing.Font("Tahoma", 10F, System.Drawing.FontStyle.Bold);
|
||
this.lblNetType.ForeColor = System.Drawing.Color.Blue;
|
||
this.lblNetType.Location = new System.Drawing.Point(125, 69);
|
||
this.lblNetType.Name = "lblNetType";
|
||
this.lblNetType.Size = new System.Drawing.Size(97, 20);
|
||
this.lblNetType.Text = "WIFI";
|
||
//
|
||
// lblSignalStrength
|
||
//
|
||
this.lblSignalStrength.Font = new System.Drawing.Font("Tahoma", 10F, System.Drawing.FontStyle.Bold);
|
||
this.lblSignalStrength.ForeColor = System.Drawing.Color.Blue;
|
||
this.lblSignalStrength.Location = new System.Drawing.Point(125, 89);
|
||
this.lblSignalStrength.Name = "lblSignalStrength";
|
||
this.lblSignalStrength.Size = new System.Drawing.Size(97, 20);
|
||
this.lblSignalStrength.Text = "0";
|
||
//
|
||
// panel2
|
||
//
|
||
this.panel2.BackColor = System.Drawing.SystemColors.ActiveCaption;
|
||
this.panel2.Controls.Add(this.picClose);
|
||
this.panel2.Controls.Add(this.signalStatus);
|
||
this.panel2.Controls.Add(this.netStatus);
|
||
this.panel2.Controls.Add(this.batteryStatus);
|
||
this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
|
||
this.panel2.Location = new System.Drawing.Point(0, 0);
|
||
this.panel2.Name = "panel2";
|
||
this.panel2.Size = new System.Drawing.Size(238, 26);
|
||
//
|
||
// picClose
|
||
//
|
||
this.picClose.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("picClose.BackgroundImage")));
|
||
this.picClose.ImageIndex = 0;
|
||
this.picClose.Location = new System.Drawing.Point(211, 0);
|
||
this.picClose.Name = "picClose";
|
||
this.picClose.Size = new System.Drawing.Size(25, 25);
|
||
this.picClose.TabIndex = 11;
|
||
this.picClose.Click += new System.EventHandler(this.picClose_Click);
|
||
//
|
||
// signalStatus
|
||
//
|
||
this.signalStatus.BackgroundImage = null;
|
||
this.signalStatus.ImageIndex = 0;
|
||
this.signalStatus.Location = new System.Drawing.Point(89, 6);
|
||
this.signalStatus.Name = "signalStatus";
|
||
this.signalStatus.Size = new System.Drawing.Size(16, 16);
|
||
this.signalStatus.TabIndex = 7;
|
||
//
|
||
// netStatus
|
||
//
|
||
this.netStatus.BackgroundImage = null;
|
||
this.netStatus.ImageIndex = 0;
|
||
this.netStatus.Location = new System.Drawing.Point(47, 6);
|
||
this.netStatus.Name = "netStatus";
|
||
this.netStatus.Size = new System.Drawing.Size(16, 16);
|
||
this.netStatus.TabIndex = 6;
|
||
//
|
||
// batteryStatus
|
||
//
|
||
this.batteryStatus.BackgroundImage = null;
|
||
this.batteryStatus.ImageIndex = 0;
|
||
this.batteryStatus.Location = new System.Drawing.Point(127, 6);
|
||
this.batteryStatus.Name = "batteryStatus";
|
||
this.batteryStatus.Size = new System.Drawing.Size(16, 16);
|
||
this.batteryStatus.TabIndex = 10;
|
||
//
|
||
// gbtnCloseNetwork
|
||
//
|
||
this.gbtnCloseNetwork.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Regular);
|
||
this.gbtnCloseNetwork.Location = new System.Drawing.Point(127, 198);
|
||
this.gbtnCloseNetwork.Name = "gbtnCloseNetwork";
|
||
this.gbtnCloseNetwork.Size = new System.Drawing.Size(68, 27);
|
||
this.gbtnCloseNetwork.TabIndex = 15;
|
||
this.gbtnCloseNetwork.Text = "关闭网络";
|
||
this.gbtnCloseNetwork.Click += new System.EventHandler(this.gbtnCloseNetwork_Click);
|
||
//
|
||
// imageButton1
|
||
//
|
||
this.imageButton1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("imageButton1.BackgroundImage")));
|
||
this.imageButton1.Location = new System.Drawing.Point(219, 278);
|
||
this.imageButton1.Name = "imageButton1";
|
||
this.imageButton1.Size = new System.Drawing.Size(16, 16);
|
||
this.imageButton1.TabIndex = 17;
|
||
this.imageButton1.Click += new System.EventHandler(this.imageButton1_Click);
|
||
//
|
||
// Form1
|
||
//
|
||
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
|
||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
|
||
this.AutoScroll = true;
|
||
this.ClientSize = new System.Drawing.Size(238, 297);
|
||
this.ControlBox = false;
|
||
this.Controls.Add(this.imageButton1);
|
||
this.Controls.Add(this.panel2);
|
||
this.Controls.Add(this.lblSignalStrength);
|
||
this.Controls.Add(this.lblNetType);
|
||
this.Controls.Add(this.lblNetStatus);
|
||
this.Controls.Add(this.label4);
|
||
this.Controls.Add(this.label3);
|
||
this.Controls.Add(this.label2);
|
||
this.Controls.Add(this.gbtnCloseNetwork);
|
||
this.Controls.Add(this.btnNetChange);
|
||
this.Controls.Add(this.panel1);
|
||
this.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Regular);
|
||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
||
this.KeyPreview = true;
|
||
this.Name = "Form1";
|
||
this.Load += new System.EventHandler(this.Form1_Load);
|
||
this.Closed += new System.EventHandler(this.Form1_Closed);
|
||
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Form1_KeyDown);
|
||
this.panel1.ResumeLayout(false);
|
||
this.panel2.ResumeLayout(false);
|
||
this.ResumeLayout(false);
|
||
|
||
}
|
||
|
||
#endregion
|
||
|
||
private System.Windows.Forms.Timer timer1;
|
||
private PDADemo.PictureControl netStatus;
|
||
private PDADemo.PictureControl signalStatus;
|
||
private PDADemo.PictureControl batteryStatus;
|
||
private System.Windows.Forms.RadioButton rbGprs;
|
||
private System.Windows.Forms.RadioButton rbWlan;
|
||
private System.Windows.Forms.Label label1;
|
||
private System.Windows.Forms.Panel panel1;
|
||
private System.Windows.Forms.Button btnNetChange;
|
||
private System.Windows.Forms.Label label2;
|
||
private System.Windows.Forms.Label label3;
|
||
private System.Windows.Forms.Label label4;
|
||
private System.Windows.Forms.Label lblNetStatus;
|
||
private System.Windows.Forms.Label lblNetType;
|
||
private System.Windows.Forms.Label lblSignalStrength;
|
||
private System.Windows.Forms.Panel panel2;
|
||
private System.Windows.Forms.Button gbtnCloseNetwork;
|
||
//private PDADemo.PictureControl picClose;
|
||
// private PDADemo.ImageButton imageButton1;
|
||
private Microsoft.WindowsCE.Forms.InputPanel inputPanel1;
|
||
private System.Windows.Forms.ContextMenu contextMenu1;
|
||
}
|
||
}
|
||
|