📄 frmoutservicetestctrl.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using ctd.E1Analyzer.GlobalConstant;
using ctd.E1Analyzer.LinkLayHandlerPacket;
namespace SmartE1Analyzer
{
/// <summary>
/// frmOutServiceTestCtrl 的摘要说明。
/// </summary>
public class frmOutServiceTestCtrl : System.Windows.Forms.Form
{
private System.Windows.Forms.Button btnStopIns106;
private System.Windows.Forms.Button btnStartIns106;
private System.Windows.Forms.Label lbl106;
private System.Windows.Forms.Button btnStopIns103;
private System.Windows.Forms.Button btnStartIns103;
private System.Windows.Forms.Label lbl103;
private System.Windows.Forms.Button btnInsertSingleErr;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Button btnStopInsAlmLof;
private System.Windows.Forms.Button btnStartInsAlmLof;
private System.Windows.Forms.Button btnStopInsAlmAis;
private System.Windows.Forms.Button btnStartInsAlmAis;
private System.Windows.Forms.Button btnStopInsAlmLos;
private System.Windows.Forms.Button btnStartInsAlmLos;
private System.Windows.Forms.Label lblLof;
private System.Windows.Forms.Label lblAis;
private System.Windows.Forms.Button btnCancel;
private System.Windows.Forms.Label lblLos;
private frmMain m_ParentFrm;
public frmOutServiceTestCtrl(frmMain frm)
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
//
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
//
this.m_ParentFrm = frm;
}
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void Dispose( bool disposing )
{
base.Dispose( disposing );
}
#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.btnStopIns106 = new System.Windows.Forms.Button();
this.btnStartIns106 = new System.Windows.Forms.Button();
this.lbl106 = new System.Windows.Forms.Label();
this.btnStopIns103 = new System.Windows.Forms.Button();
this.btnStartIns103 = new System.Windows.Forms.Button();
this.lbl103 = new System.Windows.Forms.Label();
this.btnInsertSingleErr = new System.Windows.Forms.Button();
this.label5 = new System.Windows.Forms.Label();
this.btnStopInsAlmLof = new System.Windows.Forms.Button();
this.btnStartInsAlmLof = new System.Windows.Forms.Button();
this.btnStopInsAlmAis = new System.Windows.Forms.Button();
this.btnStartInsAlmAis = new System.Windows.Forms.Button();
this.btnStopInsAlmLos = new System.Windows.Forms.Button();
this.btnStartInsAlmLos = new System.Windows.Forms.Button();
this.lblLof = new System.Windows.Forms.Label();
this.lblAis = new System.Windows.Forms.Label();
this.lblLos = new System.Windows.Forms.Label();
this.btnCancel = new System.Windows.Forms.Button();
//
// btnStopIns106
//
this.btnStopIns106.Location = new System.Drawing.Point(152, 80);
this.btnStopIns106.Size = new System.Drawing.Size(40, 24);
this.btnStopIns106.Text = "终止";
this.btnStopIns106.Click += new System.EventHandler(this.btnInsertSingleErr_Click);
//
// btnStartIns106
//
this.btnStartIns106.Location = new System.Drawing.Point(104, 80);
this.btnStartIns106.Size = new System.Drawing.Size(40, 24);
this.btnStartIns106.Text = "插入";
this.btnStartIns106.Click += new System.EventHandler(this.btnInsertSingleErr_Click);
//
// lbl106
//
this.lbl106.Location = new System.Drawing.Point(41, 88);
this.lbl106.Size = new System.Drawing.Size(56, 16);
this.lbl106.Text = "10-6误码";
//
// btnStopIns103
//
this.btnStopIns103.Location = new System.Drawing.Point(152, 48);
this.btnStopIns103.Size = new System.Drawing.Size(40, 24);
this.btnStopIns103.Text = "终止";
this.btnStopIns103.Click += new System.EventHandler(this.btnInsertSingleErr_Click);
//
// btnStartIns103
//
this.btnStartIns103.Location = new System.Drawing.Point(104, 48);
this.btnStartIns103.Size = new System.Drawing.Size(40, 24);
this.btnStartIns103.Text = "插入";
this.btnStartIns103.Click += new System.EventHandler(this.btnInsertSingleErr_Click);
//
// lbl103
//
this.lbl103.Location = new System.Drawing.Point(40, 56);
this.lbl103.Size = new System.Drawing.Size(56, 16);
this.lbl103.Text = "10-3误码";
//
// btnInsertSingleErr
//
this.btnInsertSingleErr.Location = new System.Drawing.Point(104, 16);
this.btnInsertSingleErr.Size = new System.Drawing.Size(88, 24);
this.btnInsertSingleErr.Text = "插入";
this.btnInsertSingleErr.Click += new System.EventHandler(this.btnInsertSingleErr_Click);
//
// label5
//
this.label5.Location = new System.Drawing.Point(40, 24);
this.label5.Size = new System.Drawing.Size(64, 16);
this.label5.Text = "单个误码";
//
// btnStopInsAlmLof
//
this.btnStopInsAlmLof.Location = new System.Drawing.Point(152, 176);
this.btnStopInsAlmLof.Size = new System.Drawing.Size(40, 24);
this.btnStopInsAlmLof.Text = "终止";
this.btnStopInsAlmLof.Click += new System.EventHandler(this.btnInsertSingleErr_Click);
//
// btnStartInsAlmLof
//
this.btnStartInsAlmLof.Location = new System.Drawing.Point(104, 176);
this.btnStartInsAlmLof.Size = new System.Drawing.Size(40, 24);
this.btnStartInsAlmLof.Text = "插入";
this.btnStartInsAlmLof.Click += new System.EventHandler(this.btnInsertSingleErr_Click);
//
// btnStopInsAlmAis
//
this.btnStopInsAlmAis.Location = new System.Drawing.Point(152, 144);
this.btnStopInsAlmAis.Size = new System.Drawing.Size(40, 24);
this.btnStopInsAlmAis.Text = "终止";
this.btnStopInsAlmAis.Click += new System.EventHandler(this.btnInsertSingleErr_Click);
//
// btnStartInsAlmAis
//
this.btnStartInsAlmAis.Location = new System.Drawing.Point(104, 144);
this.btnStartInsAlmAis.Size = new System.Drawing.Size(40, 24);
this.btnStartInsAlmAis.Text = "插入";
this.btnStartInsAlmAis.Click += new System.EventHandler(this.btnInsertSingleErr_Click);
//
// btnStopInsAlmLos
//
this.btnStopInsAlmLos.Location = new System.Drawing.Point(152, 112);
this.btnStopInsAlmLos.Size = new System.Drawing.Size(40, 24);
this.btnStopInsAlmLos.Text = "终止";
this.btnStopInsAlmLos.Click += new System.EventHandler(this.btnInsertSingleErr_Click);
//
// btnStartInsAlmLos
//
this.btnStartInsAlmLos.Location = new System.Drawing.Point(104, 112);
this.btnStartInsAlmLos.Size = new System.Drawing.Size(40, 24);
this.btnStartInsAlmLos.Text = "插入";
this.btnStartInsAlmLos.Click += new System.EventHandler(this.btnInsertSingleErr_Click);
//
// lblLof
//
this.lblLof.Location = new System.Drawing.Point(40, 182);
this.lblLof.Size = new System.Drawing.Size(32, 16);
this.lblLof.Text = "LOF";
//
// lblAis
//
this.lblAis.Location = new System.Drawing.Point(40, 152);
this.lblAis.Size = new System.Drawing.Size(32, 16);
this.lblAis.Text = "AIS";
//
// lblLos
//
this.lblLos.Location = new System.Drawing.Point(40, 120);
this.lblLos.Size = new System.Drawing.Size(32, 16);
this.lblLos.Text = "LOS";
//
// btnCancel
//
this.btnCancel.Location = new System.Drawing.Point(152, 224);
this.btnCancel.Size = new System.Drawing.Size(72, 24);
this.btnCancel.Text = "取消[&C]";
this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
//
// frmOutServiceTestCtrl
//
this.Controls.Add(this.btnCancel);
this.Controls.Add(this.btnStopInsAlmLof);
this.Controls.Add(this.btnStartInsAlmLof);
this.Controls.Add(this.btnStopInsAlmAis);
this.Controls.Add(this.btnStartInsAlmAis);
this.Controls.Add(this.btnStopInsAlmLos);
this.Controls.Add(this.btnStartInsAlmLos);
this.Controls.Add(this.lblLof);
this.Controls.Add(this.lblAis);
this.Controls.Add(this.lblLos);
this.Controls.Add(this.btnStopIns106);
this.Controls.Add(this.btnStartIns106);
this.Controls.Add(this.lbl106);
this.Controls.Add(this.btnStopIns103);
this.Controls.Add(this.btnStartIns103);
this.Controls.Add(this.lbl103);
this.Controls.Add(this.btnInsertSingleErr);
this.Controls.Add(this.label5);
this.Text = "中断业务测试控制";
this.Load += new System.EventHandler(this.frmOutServiceTestCtrl_Load);
}
#endregion
private void frmOutServiceTestCtrl_Load(object sender, System.EventArgs e)
{
Rectangle screen = Screen.PrimaryScreen.Bounds;
this.Location = new Point((screen.Width - this.Width) / 2,
(screen.Height - this.Height ) / 2);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -