private void barButton_Analysis_ItemClick(object sender, ItemClickEventArgs e) { //标签 if (e.Item.Name == nameof(barButton_Mark)) { ToolButton_AddLabel.Down = true; } //标签列表 else if (e.Item.Name == nameof(barButton_MarkList)) { IDD_NOTE_LIST iDD_NOTE_LIST = new IDD_NOTE_LIST(); MultiLanguage.LoadLanguage(iDD_NOTE_LIST, typeof(IDD_NOTE_LIST)); iDD_NOTE_LIST.ShowDialog(); } //斜率线 else if (e.Item.Name == nameof(barButton_Slop)) { ToolButton_AddSlop.Down = true; } //斜率线列表 else if (e.Item.Name == nameof(barButton_SlopList)) { IDD_RATELINE_LIST iDD_RATELINE_LIST = new IDD_RATELINE_LIST(); MultiLanguage.LoadLanguage(iDD_RATELINE_LIST, typeof(IDD_RATELINE_LIST)); iDD_RATELINE_LIST.ShowDialog(); } //XY座标 else if (e.Item.Name == nameof(barButton_XY)) { IDD_OPTION_HV iDD_DIALOG3_TemControl = new IDD_OPTION_HV(); MultiLanguage.LoadLanguage(iDD_DIALOG3_TemControl, typeof(IDD_OPTION_HV)); if (iDD_DIALOG3_TemControl.ShowDialog() == DialogResult.OK) { main_TempChart.CreateHVChart(); } } //XY座标编辑 else if (e.Item.Name == nameof(barButton_XYEdit)) { } //温度设定 else if (e.Item.Name == nameof(barButton_TempSetup)) { main_DataAnasis.SetPage(1); } //分析设置 else if (e.Item.Name == nameof(barButton_AnalysisSetup)) { IDD_OPTION_ANALYSE_CONDITION iDD_OPTION_ANALYSE_CONDITION = new IDD_OPTION_ANALYSE_CONDITION(); MultiLanguage.LoadLanguage(iDD_OPTION_ANALYSE_CONDITION, typeof(IDD_OPTION_ANALYSE_CONDITION)); if (iDD_OPTION_ANALYSE_CONDITION.ShowDialog() == DialogResult.OK) { Main_DataAnasis.Instance.m_pageAnaly.SwitchReportView(0); } } }
private void m_bHVSetup_Click(object sender, EventArgs e) { IDD_OPTION_HV dlg = new IDD_OPTION_HV(); if (dlg.ShowDialog() == DialogResult.OK) { m_nHNum.TextChanged -= m_nNum_TextChanged; m_nVNum.TextChanged -= m_nNum_TextChanged; m_nHNum.Value = CETCManagerApp.Instance.m_pETETCStage.m_nHAxisNum; m_nVNum.Value = CETCManagerApp.Instance.m_pETETCStage.m_nVAxisNum; Main_TempChart.Instance.CreateHVChart(); m_nHNum.TextChanged += m_nNum_TextChanged; m_nVNum.TextChanged += m_nNum_TextChanged; } }