📄 frmmain.cs
字号:
Graphics g = Graphics.FromHdc(dc);
ibtAnalyzer.Screen = g;
ibtArea.Screen = g;
ibtCalibrate.Screen = g;
ibtChannelsExtend.Screen = g;
ibtChannelsFit.Screen = g;
ibtChannelsShrink.Screen = g;
ibtMax.Screen = g;
ibtPeak.Screen = g;
ibtScale.Screen = g;
ibtSmooth.Screen = g;
ibtXextend.Screen = g;
ibtzXlast.Screen = g;
ibtzXnext.Screen = g;
ibtzYextend.Screen = g;
ibtzYshrink.Screen = g;
//
}
#endregion
#region "清理资源"
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void Dispose( bool disposing )
{
base.Dispose( disposing );
}
#endregion
#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmMain));
this.toolBar = new System.Windows.Forms.ToolBar();
this.tbbtStartstop = new System.Windows.Forms.ToolBarButton();
this.tbbtNew = new System.Windows.Forms.ToolBarButton();
this.tbbtOpen = new System.Windows.Forms.ToolBarButton();
this.tbbtSave = new System.Windows.Forms.ToolBarButton();
this.tbbtPlaystop = new System.Windows.Forms.ToolBarButton();
this.tbbtSetting = new System.Windows.Forms.ToolBarButton();
this.tbbtCoordinate = new System.Windows.Forms.ToolBarButton();
this.tbbtFill = new System.Windows.Forms.ToolBarButton();
this.tbbtGrid = new System.Windows.Forms.ToolBarButton();
this.tbbtHelp = new System.Windows.Forms.ToolBarButton();
this.toolBarButton1 = new System.Windows.Forms.ToolBarButton();
this.tbbtMax = new System.Windows.Forms.ToolBarButton();
this.tbbtExtend = new System.Windows.Forms.ToolBarButton();
this.tbbtScale = new System.Windows.Forms.ToolBarButton();
this.tbbtAnalyzer = new System.Windows.Forms.ToolBarButton();
this.imageList = new System.Windows.Forms.ImageList();
this.openFileDialog = new System.Windows.Forms.OpenFileDialog();
this.saveFileDialog = new System.Windows.Forms.SaveFileDialog();
this.timer = new System.Windows.Forms.Timer();
this.panel3 = new System.Windows.Forms.Panel();
this.lbCount = new System.Windows.Forms.Label();
this.pbCount = new System.Windows.Forms.PictureBox();
this.lbTime = new System.Windows.Forms.Label();
this.pbTime = new System.Windows.Forms.PictureBox();
this.panel4 = new System.Windows.Forms.Panel();
this.panel1 = new System.Windows.Forms.Panel();
this.ibtAnalyzer = new Custom.ImageButton();
this.ibtScale = new Custom.ImageButton();
this.ibtXextend = new Custom.ImageButton();
this.ibtMax = new Custom.ImageButton();
this.ibtzXnext = new Custom.ImageButton();
this.ibtzXlast = new Custom.ImageButton();
this.ibtzYshrink = new Custom.ImageButton();
this.ibtzYextend = new Custom.ImageButton();
this.zdrawbox = new Custom.DDrawBox();
this.panel13 = new System.Windows.Forms.Panel();
this.panel6 = new System.Windows.Forms.Panel();
this.hSBRegion = new System.Windows.Forms.HScrollBar();
this.panel8 = new System.Windows.Forms.Panel();
this.panel12 = new System.Windows.Forms.Panel();
this.panel11 = new System.Windows.Forms.Panel();
this.lbRegionEnd = new System.Windows.Forms.Label();
this.panel7 = new System.Windows.Forms.Panel();
this.panel10 = new System.Windows.Forms.Panel();
this.panel9 = new System.Windows.Forms.Panel();
this.lbRegionStart = new System.Windows.Forms.Label();
this.panel5 = new System.Windows.Forms.Panel();
this.panel2 = new System.Windows.Forms.Panel();
this.ibtChannelsShrink = new Custom.ImageButton();
this.ibtChannelsExtend = new Custom.ImageButton();
this.ibtChannelsFit = new Custom.ImageButton();
this.drawbox = new Custom.DDrawBox();
this.panel14 = new System.Windows.Forms.Panel();
this.panel = new System.Windows.Forms.Panel();
this.gridPeak = new System.Windows.Forms.DataGrid();
this.dataGridTableStyle1 = new System.Windows.Forms.DataGridTableStyle();
this.dataGridTextBoxColumn2 = new System.Windows.Forms.DataGridTextBoxColumn();
this.dataGridTextBoxColumn1 = new System.Windows.Forms.DataGridTextBoxColumn();
this.dataGridTextBoxColumn3 = new System.Windows.Forms.DataGridTextBoxColumn();
this.dataGridTextBoxColumn4 = new System.Windows.Forms.DataGridTextBoxColumn();
this.dataGridTextBoxColumn5 = new System.Windows.Forms.DataGridTextBoxColumn();
this.dataGridTextBoxColumn6 = new System.Windows.Forms.DataGridTextBoxColumn();
this.dataGridTextBoxColumn7 = new System.Windows.Forms.DataGridTextBoxColumn();
this.panel15 = new System.Windows.Forms.Panel();
this.ibtCalibrate = new Custom.ImageButton();
this.ibtArea = new Custom.ImageButton();
this.ibtPeak = new Custom.ImageButton();
this.ibtSmooth = new Custom.ImageButton();
this.realtimer = new System.Windows.Forms.Timer();
this.cMenuSmooth = new System.Windows.Forms.ContextMenu();
this.mItem5 = new System.Windows.Forms.MenuItem();
this.mItem7 = new System.Windows.Forms.MenuItem();
this.mItem9 = new System.Windows.Forms.MenuItem();
this.mItem11 = new System.Windows.Forms.MenuItem();
this.mItem13 = new System.Windows.Forms.MenuItem();
this.mItemManul = new System.Windows.Forms.MenuItem();
this.menuItem1 = new System.Windows.Forms.MenuItem();
this.mItemUndo = new System.Windows.Forms.MenuItem();
this.cMenuPeak = new System.Windows.Forms.ContextMenu();
this.mItemFilter = new System.Windows.Forms.MenuItem();
this.mItemCovariance = new System.Windows.Forms.MenuItem();
this.mItemLinearity = new System.Windows.Forms.MenuItem();
this.mItemDerivative = new System.Windows.Forms.MenuItem();
this.cMenuCalibrate = new System.Windows.Forms.ContextMenu();
this.mItemEnergyCal = new System.Windows.Forms.MenuItem();
this.mItemPeakCal = new System.Windows.Forms.MenuItem();
this.mItemEfficencyCal = new System.Windows.Forms.MenuItem();
this.cMenuArea = new System.Windows.Forms.ContextMenu();
this.mItemAreaSub = new System.Windows.Forms.MenuItem();
this.mItemPeakArea = new System.Windows.Forms.MenuItem();
this.mItemManualArea = new System.Windows.Forms.MenuItem();
this.panel3.SuspendLayout();
this.panel4.SuspendLayout();
this.panel1.SuspendLayout();
this.panel6.SuspendLayout();
this.panel8.SuspendLayout();
this.panel7.SuspendLayout();
this.panel5.SuspendLayout();
this.panel2.SuspendLayout();
this.panel.SuspendLayout();
this.panel15.SuspendLayout();
this.SuspendLayout();
//
// toolBar
//
this.toolBar.Buttons.Add(this.tbbtStartstop);
this.toolBar.Buttons.Add(this.tbbtNew);
this.toolBar.Buttons.Add(this.tbbtOpen);
this.toolBar.Buttons.Add(this.tbbtSave);
this.toolBar.Buttons.Add(this.tbbtPlaystop);
this.toolBar.Buttons.Add(this.tbbtSetting);
this.toolBar.Buttons.Add(this.tbbtCoordinate);
this.toolBar.Buttons.Add(this.tbbtFill);
this.toolBar.Buttons.Add(this.tbbtGrid);
this.toolBar.Buttons.Add(this.tbbtHelp);
this.toolBar.Buttons.Add(this.toolBarButton1);
this.toolBar.Buttons.Add(this.tbbtMax);
this.toolBar.Buttons.Add(this.tbbtExtend);
this.toolBar.Buttons.Add(this.tbbtScale);
this.toolBar.Buttons.Add(this.tbbtAnalyzer);
this.toolBar.ImageList = this.imageList;
this.toolBar.Name = "toolBar";
this.toolBar.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar_ButtonClick);
//
// tbbtStartstop
//
this.tbbtStartstop.ImageIndex = 0;
this.tbbtStartstop.ToolTipText = "开始或停止采集";
//
// tbbtNew
//
this.tbbtNew.ImageIndex = 2;
this.tbbtNew.ToolTipText = "新建";
//
// tbbtOpen
//
this.tbbtOpen.ImageIndex = 4;
this.tbbtOpen.ToolTipText = "打开数据文件";
//
// tbbtSave
//
this.tbbtSave.ImageIndex = 5;
this.tbbtSave.ToolTipText = "保存数据文件";
//
// tbbtPlaystop
//
this.tbbtPlaystop.ImageIndex = 6;
this.tbbtPlaystop.ToolTipText = "开始或停止回放";
//
// tbbtSetting
//
this.tbbtSetting.ImageIndex = 3;
this.tbbtSetting.ToolTipText = "设置";
//
// tbbtCoordinate
//
this.tbbtCoordinate.ImageIndex = 10;
this.tbbtCoordinate.ToolTipText = "改变坐标";
//
// tbbtFill
//
this.tbbtFill.ImageIndex = 9;
this.tbbtFill.ToolTipText = "显示曲线或直方图";
//
// tbbtGrid
//
this.tbbtGrid.ImageIndex = 43;
this.tbbtGrid.ToolTipText = "显示或取消显示网格";
//
// tbbtHelp
//
this.tbbtHelp.ImageIndex = 12;
this.tbbtHelp.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton;
this.tbbtHelp.ToolTipText = "帮助";
//
// toolBarButton1
//
this.toolBarButton1.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
//
// tbbtMax
//
this.tbbtMax.ImageIndex = 15;
this.tbbtMax.ToolTipText = "放大区最大化或还原";
this.tbbtMax.Visible = false;
//
// tbbtExtend
//
this.tbbtExtend.ImageIndex = 17;
this.tbbtExtend.ToolTipText = "放大区扩展或压缩";
this.tbbtExtend.Visible = false;
//
// tbbtScale
//
this.tbbtScale.ImageIndex = 13;
this.tbbtScale.ToolTipText = "自动或手动量程";
this.tbbtScale.Visible = false;
//
// tbbtAnalyzer
//
this.tbbtAnalyzer.ImageIndex = 14;
this.tbbtAnalyzer.ToolTipText = "分析";
this.tbbtAnalyzer.Visible = false;
this.imageList.Images.Clear();
this.imageList.Images.Add(((System.Drawing.Image)(resources.GetObject("resource"))));
this.imageList.Images.Add(((System.Drawing.Image)(resources.GetObject("resource1"))));
this.imageList.Images.Add(((System.Drawing.Image)(resources.GetObject("resource2"))));
this.imageList.Images.Add(((System.Drawing.Image)(resources.GetObject("resource3"))));
this.imageList.Images.Add(((System.Drawing.Image)(resources.GetObject("resource4"))));
this.imageList.Images.Add(((System.Drawing.Image)(resources.GetObject("resource5"))));
this.imageList.Images.Add(((System.Drawing.Image)(resources.GetObject("resource6"))));
this.imageList.Images.Add(((System.Drawing.Image)(resources.GetObject("resource7"))));
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -