📄 frmmain.cs
字号:
this.drawbox.FillColor = System.Drawing.Color.Black;
this.drawbox.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.drawbox.Image = ((System.Drawing.Image)(resources.GetObject("drawbox.Image")));
this.drawbox.LabelCalibrate = null;
this.drawbox.LabelX = "Channel";
this.drawbox.LabelY = "Count";
this.drawbox.Location = new System.Drawing.Point(0, 0);
this.drawbox.MaxX = 1024;
this.drawbox.MaxY = 256;
this.drawbox.MinX = 0;
this.drawbox.MinY = 0;
this.drawbox.Name = "drawbox";
this.drawbox.PaintGridX = false;
this.drawbox.PaintGridY = false;
this.drawbox.RegionColor = System.Drawing.Color.LimeGreen;
this.drawbox.RegionEndX = -1;
this.drawbox.RegionStartX = -1;
this.drawbox.SelectedX = -1;
this.drawbox.SelectLineColor = System.Drawing.Color.LimeGreen;
this.drawbox.ShowCalibrate = false;
this.drawbox.Size = new System.Drawing.Size(232, 80);
this.drawbox.MouseDown += new System.Windows.Forms.MouseEventHandler(this.drawbox_MouseDown);
this.drawbox.MouseMove += new System.Windows.Forms.MouseEventHandler(this.drawbox_MouseMove);
this.drawbox.Resize += new System.EventHandler(this.drawbox_Resize);
this.drawbox.MouseUp += new System.Windows.Forms.MouseEventHandler(this.drawbox_MouseUp);
//
// panel14
//
this.panel14.BackColor = System.Drawing.Color.Black;
this.panel14.Dock = System.Windows.Forms.DockStyle.Right;
this.panel14.Location = new System.Drawing.Point(232, 0);
this.panel14.Name = "panel14";
this.panel14.Size = new System.Drawing.Size(8, 80);
//
// panel
//
this.panel.BackColor = System.Drawing.SystemColors.Control;
this.panel.Controls.Add(this.gridPeak);
this.panel.Controls.Add(this.panel15);
this.panel.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel.Location = new System.Drawing.Point(0, 0);
this.panel.Name = "panel";
this.panel.Size = new System.Drawing.Size(240, 80);
//
// gridPeak
//
this.gridPeak.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))));
this.gridPeak.Dock = System.Windows.Forms.DockStyle.Fill;
this.gridPeak.Location = new System.Drawing.Point(0, 0);
this.gridPeak.Name = "gridPeak";
this.gridPeak.Size = new System.Drawing.Size(220, 80);
this.gridPeak.TabIndex = 1;
this.gridPeak.TableStyles.Add(this.dataGridTableStyle1);
this.gridPeak.DoubleClick += new System.EventHandler(this.gridPeak_DoubleClick);
this.gridPeak.MouseUp += new System.Windows.Forms.MouseEventHandler(this.gridPeak_MouseUp);
//
// dataGridTableStyle1
//
this.dataGridTableStyle1.GridColumnStyles.Add(this.dataGridTextBoxColumn2);
this.dataGridTableStyle1.GridColumnStyles.Add(this.dataGridTextBoxColumn1);
this.dataGridTableStyle1.GridColumnStyles.Add(this.dataGridTextBoxColumn3);
this.dataGridTableStyle1.GridColumnStyles.Add(this.dataGridTextBoxColumn4);
this.dataGridTableStyle1.GridColumnStyles.Add(this.dataGridTextBoxColumn5);
this.dataGridTableStyle1.GridColumnStyles.Add(this.dataGridTextBoxColumn6);
this.dataGridTableStyle1.GridColumnStyles.Add(this.dataGridTextBoxColumn7);
this.dataGridTableStyle1.MappingName = "ROI";
//
// dataGridTextBoxColumn2
//
this.dataGridTextBoxColumn2.HeaderText = "Channel";
this.dataGridTextBoxColumn2.MappingName = "Channel";
this.dataGridTextBoxColumn2.NullText = "0";
//
// dataGridTextBoxColumn1
//
this.dataGridTextBoxColumn1.HeaderText = "Energy(keV)";
this.dataGridTextBoxColumn1.MappingName = "Energy(keV)";
this.dataGridTextBoxColumn1.NullText = "0";
this.dataGridTextBoxColumn1.Width = 80;
//
// dataGridTextBoxColumn3
//
this.dataGridTextBoxColumn3.HeaderText = "Left";
this.dataGridTextBoxColumn3.MappingName = "Left";
this.dataGridTextBoxColumn3.NullText = "0";
//
// dataGridTextBoxColumn4
//
this.dataGridTextBoxColumn4.HeaderText = "Right";
this.dataGridTextBoxColumn4.MappingName = "Right";
this.dataGridTextBoxColumn4.NullText = "0";
//
// dataGridTextBoxColumn5
//
this.dataGridTextBoxColumn5.HeaderText = "FWHM(keV)";
this.dataGridTextBoxColumn5.MappingName = "FWHM(keV)";
this.dataGridTextBoxColumn5.NullText = "0";
this.dataGridTextBoxColumn5.Width = 80;
//
// dataGridTextBoxColumn6
//
this.dataGridTextBoxColumn6.HeaderText = "Area";
this.dataGridTextBoxColumn6.MappingName = "Area";
this.dataGridTextBoxColumn6.NullText = "0";
//
// dataGridTextBoxColumn7
//
this.dataGridTextBoxColumn7.HeaderText = "Remark";
this.dataGridTextBoxColumn7.MappingName = "Remark";
//
// panel15
//
this.panel15.Controls.Add(this.ibtCalibrate);
this.panel15.Controls.Add(this.ibtArea);
this.panel15.Controls.Add(this.ibtPeak);
this.panel15.Controls.Add(this.ibtSmooth);
this.panel15.Dock = System.Windows.Forms.DockStyle.Right;
this.panel15.Location = new System.Drawing.Point(220, 0);
this.panel15.Name = "panel15";
this.panel15.Size = new System.Drawing.Size(20, 80);
//
// ibtCalibrate
//
this.ibtCalibrate.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.ibtCalibrate.BackgroundPoint = new System.Drawing.Point(0, 0);
this.ibtCalibrate.Dock = System.Windows.Forms.DockStyle.Top;
this.ibtCalibrate.FillColor = System.Drawing.Color.White;
this.ibtCalibrate.Image = ((System.Drawing.Image)(resources.GetObject("ibtCalibrate.Image")));
this.ibtCalibrate.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(127)))), ((int)(((byte)(127)))));
this.ibtCalibrate.Location = new System.Drawing.Point(0, 60);
this.ibtCalibrate.Name = "ibtCalibrate";
this.ibtCalibrate.ShadowColor = System.Drawing.Color.Gray;
this.ibtCalibrate.ShowShadow = false;
this.ibtCalibrate.Size = new System.Drawing.Size(20, 20);
this.ibtCalibrate.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.ibtCalibrate.TabIndex = 5;
this.ibtCalibrate.Text = "刻度";
this.ibtCalibrate.TipAnchor = Custom.TipAnchorStyles.Left;
this.ibtCalibrate.MouseUp += new System.Windows.Forms.MouseEventHandler(this.ibtCalibrate_MouseUp);
//
// ibtArea
//
this.ibtArea.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.ibtArea.BackgroundPoint = new System.Drawing.Point(0, 0);
this.ibtArea.Dock = System.Windows.Forms.DockStyle.Top;
this.ibtArea.FillColor = System.Drawing.Color.White;
this.ibtArea.Image = ((System.Drawing.Image)(resources.GetObject("ibtArea.Image")));
this.ibtArea.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(127)))), ((int)(((byte)(127)))));
this.ibtArea.Location = new System.Drawing.Point(0, 40);
this.ibtArea.Name = "ibtArea";
this.ibtArea.ShadowColor = System.Drawing.Color.Gray;
this.ibtArea.ShowShadow = false;
this.ibtArea.Size = new System.Drawing.Size(20, 20);
this.ibtArea.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.ibtArea.TabIndex = 4;
this.ibtArea.Text = "面积计算";
this.ibtArea.TipAnchor = Custom.TipAnchorStyles.Left;
this.ibtArea.MouseUp += new System.Windows.Forms.MouseEventHandler(this.ibtArea_MouseUp);
//
// ibtPeak
//
this.ibtPeak.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.ibtPeak.BackgroundPoint = new System.Drawing.Point(0, 0);
this.ibtPeak.Dock = System.Windows.Forms.DockStyle.Top;
this.ibtPeak.FillColor = System.Drawing.Color.White;
this.ibtPeak.Image = ((System.Drawing.Image)(resources.GetObject("ibtPeak.Image")));
this.ibtPeak.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(127)))), ((int)(((byte)(127)))));
this.ibtPeak.Location = new System.Drawing.Point(0, 20);
this.ibtPeak.Name = "ibtPeak";
this.ibtPeak.ShadowColor = System.Drawing.Color.Gray;
this.ibtPeak.ShowShadow = false;
this.ibtPeak.Size = new System.Drawing.Size(20, 20);
this.ibtPeak.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.ibtPeak.TabIndex = 3;
this.ibtPeak.Text = "寻峰";
this.ibtPeak.TipAnchor = Custom.TipAnchorStyles.Left;
this.ibtPeak.MouseUp += new System.Windows.Forms.MouseEventHandler(this.ibtPeek_MouseUp);
//
// ibtSmooth
//
this.ibtSmooth.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.ibtSmooth.BackgroundPoint = new System.Drawing.Point(0, 0);
this.ibtSmooth.Dock = System.Windows.Forms.DockStyle.Top;
this.ibtSmooth.FillColor = System.Drawing.Color.White;
this.ibtSmooth.Image = ((System.Drawing.Image)(resources.GetObject("ibtSmooth.Image")));
this.ibtSmooth.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(127)))), ((int)(((byte)(127)))));
this.ibtSmooth.Location = new System.Drawing.Point(0, 0);
this.ibtSmooth.Name = "ibtSmooth";
this.ibtSmooth.ShadowColor = System.Drawing.Color.Gray;
this.ibtSmooth.ShowShadow = false;
this.ibtSmooth.Size = new System.Drawing.Size(20, 20);
this.ibtSmooth.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.ibtSmooth.TabIndex = 1;
this.ibtSmooth.Text = "平滑";
this.ibtSmooth.TipAnchor = Custom.TipAnchorStyles.Left;
this.ibtSmooth.MouseUp += new System.Windows.Forms.MouseEventHandler(this.ibtSmooth_MouseUp);
//
// realtimer
//
this.realtimer.Interval = 1000;
this.realtimer.Tick += new System.EventHandler(this.realtimer_Tick);
//
// cMenuSmooth
//
this.cMenuSmooth.MenuItems.Add(this.mItem5);
this.cMenuSmooth.MenuItems.Add(this.mItem7);
this.cMenuSmooth.MenuItems.Add(this.mItem9);
this.cMenuSmooth.MenuItems.Add(this.mItem11);
this.cMenuSmooth.MenuItems.Add(this.mItem13);
this.cMenuSmooth.MenuItems.Add(this.mItemManul);
this.cMenuSmooth.MenuItems.Add(this.menuItem1);
this.cMenuSmooth.MenuItems.Add(this.mItemUndo);
//
// mItem5
//
this.mItem5.Text = "5点";
this.mItem5.Click += new System.EventHandler(this.mItem5_Click);
//
// mItem7
//
this.mItem7.Text = "7点";
this.mItem7.Click += new System.EventHandler(this.mItem7_Click);
//
// mItem9
//
this.mItem9.Text = "9点";
this.mItem9.Click += new System.EventHandler(this.mItem9_Click);
//
// mItem11
//
this.mItem11.Text = "11点";
this.mItem11.Click += new System.EventHandler(this.mItem11_Click);
//
// mItem13
//
this.mItem13.Text = "13点";
this.mItem13.Click += new System.EventHandler(this.mItem13_Click);
//
// mItemManul
//
this.mItemManul.Text = "自定义";
this.mItemManul.Click += new System.EventHandler(this.mItemManul_Click);
//
// menuItem1
//
this
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -