📄 form1.cs
字号:
this.lblStartDelay.Enabled = false;
this.lblStartDelay.Location = new System.Drawing.Point(255, 88);
this.lblStartDelay.Name = "lblStartDelay";
this.lblStartDelay.Size = new System.Drawing.Size(40, 16);
this.lblStartDelay.TabIndex = 3;
this.lblStartDelay.Text = "延时";
this.lblStartDelay.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// chkDisplayUnitEnabled
//
this.chkDisplayUnitEnabled.Enabled = false;
this.chkDisplayUnitEnabled.Location = new System.Drawing.Point(200, 24);
this.chkDisplayUnitEnabled.Name = "chkDisplayUnitEnabled";
this.chkDisplayUnitEnabled.Size = new System.Drawing.Size(56, 20);
this.chkDisplayUnitEnabled.TabIndex = 2;
this.chkDisplayUnitEnabled.Text = "使能";
this.chkDisplayUnitEnabled.CheckedChanged += new System.EventHandler(this.chkDisplayUnitEnabled_CheckedChanged);
//
// lblMinValue
//
this.lblMinValue.Enabled = false;
this.lblMinValue.Location = new System.Drawing.Point(24, 154);
this.lblMinValue.Name = "lblMinValue";
this.lblMinValue.Size = new System.Drawing.Size(48, 16);
this.lblMinValue.TabIndex = 7;
this.lblMinValue.Text = "最小值";
this.lblMinValue.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.lblMinValue.Visible = false;
//
// txtMinValue
//
this.txtMinValue.Enabled = false;
this.txtMinValue.Location = new System.Drawing.Point(72, 152);
this.txtMinValue.Name = "txtMinValue";
this.txtMinValue.Size = new System.Drawing.Size(90, 21);
this.txtMinValue.TabIndex = 8;
this.txtMinValue.Text = "";
this.txtMinValue.Visible = false;
this.txtMinValue.Validating += new System.ComponentModel.CancelEventHandler(this.txtMinValue_Validating);
//
// lblMaxValue
//
this.lblMaxValue.Enabled = false;
this.lblMaxValue.Location = new System.Drawing.Point(24, 186);
this.lblMaxValue.Name = "lblMaxValue";
this.lblMaxValue.Size = new System.Drawing.Size(48, 16);
this.lblMaxValue.TabIndex = 9;
this.lblMaxValue.Text = "最大值";
this.lblMaxValue.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.lblMaxValue.Visible = false;
//
// txtMaxValue
//
this.txtMaxValue.Enabled = false;
this.txtMaxValue.Location = new System.Drawing.Point(72, 184);
this.txtMaxValue.Name = "txtMaxValue";
this.txtMaxValue.Size = new System.Drawing.Size(90, 21);
this.txtMaxValue.TabIndex = 10;
this.txtMaxValue.Text = "";
this.txtMaxValue.Visible = false;
this.txtMaxValue.Validating += new System.ComponentModel.CancelEventHandler(this.txtMaxValue_Validating);
//
// lblThreshold
//
this.lblThreshold.Enabled = false;
this.lblThreshold.Location = new System.Drawing.Point(24, 186);
this.lblThreshold.Name = "lblThreshold";
this.lblThreshold.Size = new System.Drawing.Size(48, 16);
this.lblThreshold.TabIndex = 9;
this.lblThreshold.Text = "门限值";
this.lblThreshold.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.lblThreshold.Visible = false;
//
// txtThreshold
//
this.txtThreshold.Enabled = false;
this.txtThreshold.Location = new System.Drawing.Point(72, 184);
this.txtThreshold.Name = "txtThreshold";
this.txtThreshold.Size = new System.Drawing.Size(90, 21);
this.txtThreshold.TabIndex = 10;
this.txtThreshold.Text = "";
this.txtThreshold.Visible = false;
this.txtThreshold.Validating += new System.ComponentModel.CancelEventHandler(this.txtThreshold_Validating);
//
// chkLogarithmic
//
this.chkLogarithmic.Enabled = false;
this.chkLogarithmic.Location = new System.Drawing.Point(24, 216);
this.chkLogarithmic.Name = "chkLogarithmic";
this.chkLogarithmic.Size = new System.Drawing.Size(120, 20);
this.chkLogarithmic.TabIndex = 11;
this.chkLogarithmic.Text = "使用非均匀量化";
this.chkLogarithmic.Visible = false;
this.chkLogarithmic.CheckedChanged += new System.EventHandler(this.chkLogarithmic_CheckedChanged);
//
// lblOperator
//
this.lblOperator.Enabled = false;
this.lblOperator.Location = new System.Drawing.Point(24, 154);
this.lblOperator.Name = "lblOperator";
this.lblOperator.Size = new System.Drawing.Size(48, 16);
this.lblOperator.TabIndex = 7;
this.lblOperator.Text = "运算符";
this.lblOperator.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.lblOperator.Visible = false;
//
// cboOperators
//
this.cboOperators.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cboOperators.Enabled = false;
this.cboOperators.Items.AddRange(new object[] {
"大于",
"不小于",
"等于",
"不大于",
"小于"});
this.cboOperators.Location = new System.Drawing.Point(72, 152);
this.cboOperators.Name = "cboOperators";
this.cboOperators.Size = new System.Drawing.Size(90, 20);
this.cboOperators.TabIndex = 8;
this.cboOperators.Visible = false;
//
// tabMain
//
this.tabMain.Controls.AddRange(new System.Windows.Forms.Control[] {
this.pageGeneral,
this.pageDisplay,
this.pageRun});
this.tabMain.ImageList = this.ilTabCtrl;
this.tabMain.Location = new System.Drawing.Point(8, 8);
this.tabMain.Name = "tabMain";
this.tabMain.SelectedIndex = 0;
this.tabMain.Size = new System.Drawing.Size(480, 328);
this.tabMain.TabIndex = 0;
this.tabMain.SelectedIndexChanged += new System.EventHandler(this.tabMain_SelectedIndexChanged);
//
// pageGeneral
//
this.pageGeneral.Controls.AddRange(new System.Windows.Forms.Control[] {
this.lblAvrLogo1,
this.lblSeparator1,
this.lblMillisecond1,
this.lblSampleInterval,
this.cboSampleIntervals,
this.chkStartWithSys,
this.chkHideOnStart,
this.txtValidateInterval,
this.chkValidateCounters,
this.lblSecond1,
this.lblBaudrate,
this.lblValidateInterval,
this.cboBaudrates,
this.lblStartDelay,
this.lblSecond2,
this.chkAutoStartSampling,
this.txtStartDelay});
this.pageGeneral.ImageIndex = 0;
this.pageGeneral.Location = new System.Drawing.Point(4, 23);
this.pageGeneral.Name = "pageGeneral";
this.pageGeneral.Size = new System.Drawing.Size(472, 301);
this.pageGeneral.TabIndex = 0;
this.pageGeneral.Text = "一般设定";
//
// lblAvrLogo1
//
this.lblAvrLogo1.Image = ((System.Drawing.Bitmap)(resources.GetObject("lblAvrLogo1.Image")));
this.lblAvrLogo1.ImageIndex = 0;
this.lblAvrLogo1.ImageList = this.ilAvrLogo;
this.lblAvrLogo1.Location = new System.Drawing.Point(344, 232);
this.lblAvrLogo1.Name = "lblAvrLogo1";
this.lblAvrLogo1.Size = new System.Drawing.Size(104, 48);
this.lblAvrLogo1.TabIndex = 16;
//
// ilAvrLogo
//
this.ilAvrLogo.ColorDepth = System.Windows.Forms.ColorDepth.Depth24Bit;
this.ilAvrLogo.ImageSize = new System.Drawing.Size(94, 42);
this.ilAvrLogo.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("ilAvrLogo.ImageStream")));
this.ilAvrLogo.TransparentColor = System.Drawing.Color.White;
//
// lblSeparator1
//
this.lblSeparator1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.lblSeparator1.Location = new System.Drawing.Point(24, 160);
this.lblSeparator1.Name = "lblSeparator1";
this.lblSeparator1.Size = new System.Drawing.Size(424, 2);
this.lblSeparator1.TabIndex = 10;
this.lblSeparator1.Text = "label1";
//
// lblMillisecond1
//
this.lblMillisecond1.Location = new System.Drawing.Point(200, 216);
this.lblMillisecond1.Name = "lblMillisecond1";
this.lblMillisecond1.Size = new System.Drawing.Size(32, 16);
this.lblMillisecond1.TabIndex = 15;
this.lblMillisecond1.Text = "毫秒";
this.lblMillisecond1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// lblSampleInterval
//
this.lblSampleInterval.Location = new System.Drawing.Point(32, 216);
this.lblSampleInterval.Name = "lblSampleInterval";
this.lblSampleInterval.Size = new System.Drawing.Size(72, 16);
this.lblSampleInterval.TabIndex = 13;
this.lblSampleInterval.Text = "采样间隔";
this.lblSampleInterval.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// cboSampleIntervals
//
this.cboSampleIntervals.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cboSampleIntervals.Location = new System.Drawing.Point(104, 214);
this.cboSampleIntervals.Name = "cboSampleIntervals";
this.cboSampleIntervals.Size = new System.Drawing.Size(96, 20);
this.cboSampleIntervals.TabIndex = 14;
//
// chkStartWithSys
//
this.chkStartWithSys.Location = new System.Drawing.Point(32, 55);
this.chkStartWithSys.Name = "chkStartWithSys";
this.chkStartWithSys.Size = new System.Drawing.Size(128, 20);
this.chkStartWithSys.TabIndex = 1;
this.chkStartWithSys.Text = "开机时自动启动";
//
// chkHideOnStart
//
this.chkHideOnStart.Location = new System.Drawing.Point(32, 24);
this.chkHideOnStart.Name = "chkHideOnStart";
this.chkHideOnStart.Size = new System.Drawing.Size(152, 20);
this.chkHideOnStart.TabIndex = 0;
this.chkHideOnStart.Text = "启动后自动隐藏主窗口";
//
// pageDisplay
//
this.pageDisplay.Controls.AddRange(new System.Windows.Forms.Control[] {
this.lblAvrLogo2,
this.label1,
this.lblOperator,
this.lblCurrentCounter,
this.cboOperators,
this.lblCurrentCounter1,
this.lblMinValue,
this.txtMinValue,
this.lblDisplayUnits,
this.lblMaxValue,
this.btnModifyCounter,
this.cboDisplayUnits,
this.txtMaxValue,
this.lblThreshold,
this.txtThreshold,
this.chkDisplayUnitEnabled,
this.chkLogarithmic});
this.pageDisplay.ImageIndex = 1;
this.pageDisplay.Location = new System.Drawing.Point(4, 23);
this.pageDisplay.Name = "pageDisplay";
this.pageDisplay.Size = new System.Drawing.Size(472, 301);
this.pageDisplay.TabIndex = 1;
this.pageDisplay.Text = "显示单元";
//
// lblAvrLogo2
//
this.lblAvrLogo2.Image = ((System.Drawing.Bitmap)(resources.GetObject("lblAvrLogo2.Image")));
this.lblAvrLogo2.ImageIndex = 0;
this.lblAvrLogo2.ImageList = this.ilAvrLogo;
this.lblAvrLogo2.Location = new System.Drawing.Point(344, 232);
this.lblAvrLogo2.Name = "lblAvrLogo2";
this.lblAvrLogo2.Size = new System.Drawing.Size(104, 48);
this.lblAvrLogo2.TabIndex = 17;
//
// label1
//
this.label1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.label1.Location = new System.Drawing.Point(24, 56);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(424, 2);
this.label1.TabIndex = 3;
this.label1.Text = "label1";
//
// pageRun
//
this.pageRun.Controls.AddRange(new System.Windows.Forms.Control[] {
this.cboRefreshIntervals,
this.lblMillisecond2,
this.lblRefreshInterval,
this.chkTraceData,
this.lblDeviceStatus,
this.lvTraceData});
this.pageRun.ImageIndex = 2;
this.pageRun.Location = new System.Drawing.Point(4, 23);
this.pageRun.Name = "pageRun";
this.pageRun.Size = new System.Drawing.Size(472, 301);
this.pageRun.TabIndex = 2;
this.pageRun.Text = "运行状态";
//
// cboRefreshIntervals
//
this.cboRefreshIntervals.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cboRefreshIntervals.Enabled = false;
this.cboRefreshIntervals.Location = new System.Drawing.Point(96, 46);
this.cboRefreshIntervals.Name = "cboRefreshIntervals";
this.cboRefreshIntervals.Size = new System.Drawing.Size(64, 20);
this.cboRefreshIntervals.TabIndex = 2;
this.cboRefreshIntervals.SelectedIndexChanged += new System.EventHandler(this.cboRefreshIntervals_SelectedIndexChanged);
//
// lblMillisecond2
//
this.lblMillisecond2.Enabled = false;
this.lblMillisecond2.Location = new System.Drawing.Point(161, 48);
this.lblMillisecond2.Name = "lblMillisecond2";
this.lblMillisecond2.Size = new System.Drawing.Size(32, 16);
this.lblMillisecond2.TabIndex = 3;
this.lblMillisecond2.Text = "毫秒";
this.lblMillisecond2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// lblRefreshInterval
//
this.lblRefreshInterval.Enabled = false;
this.lblRefreshInterval.Location = new System.Drawing.Point(32, 48);
this.lblRefreshInterval.Name = "lblRefreshInterval";
this.lblRefreshInterval.Size = new System.Drawing.Size(64, 16);
this.lblRefreshInterval.TabIndex = 1;
this.lblRefreshInterval.Text = "刷新间隔";
this.lblRefreshInterval.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// chkTraceData
//
this.chkTraceData.Location = new System.Drawing.Point(16, 16);
this.chkTraceData.Name = "chkTraceData";
this.chkTraceData.Size = new System.Drawing.Size(136, 20);
this.chkTraceData.TabIndex = 0;
this.chkTraceData.Text = "实时跟踪性能数据";
this.chkTraceData.CheckedChanged += new System.EventHandler(this.chkTraceData_CheckedChanged);
//
// lblDeviceStatus
//
this.lblDeviceStatus.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.lblDeviceStatus.Image = ((System.Drawing.Bitmap)(resources.GetObject("lblDeviceStatus.Image")));
this.lblDeviceStatus.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.lblDeviceStatus.ImageIndex = 0;
this.lblDeviceStatus.ImageList = this.ilDevStatus;
this.lblDeviceStatus.Location = new System.Drawing.Point(256, 16);
this.lblDeviceStatus.Name = "lblDeviceStatus";
this.lblDeviceStatus.Size = new System.Drawing.Size(152, 40);
this.lblDeviceStatus.TabIndex = 4;
this.lblDeviceStatus.Text = "当前设备已断开!";
this.lblDeviceStatus.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// ilDevStatus
//
this.ilDevStatus.ColorDepth = System.Windows.Forms.ColorDepth.Depth24Bit;
this.ilDevStatus.ImageSize = new System.Drawing.Size(32, 32);
this.ilDevStatus.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("ilDevStatus.ImageStream")));
this.ilDevStatus.TransparentColor = System.Drawing.Color.White;
//
// lvTraceData
//
this.lvTraceData.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.chUnitName,
this.chSampleValue,
this.chDisplayValue,
this.chCounter});
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -