コード例 #1
0
 void sbuttonItem6_Click(object sender, EventArgs e)
 {
     try
     {
         DevComponents.DotNetBar.ButtonItem buttonItem = sender as DevComponents.DotNetBar.ButtonItem;
         if (sender != null)
         {
             var s = buttonItem.Tag as StatusInfoV3_1;
             if (s != null)
             {
                 FormEditHistoryAnalyseParam f = new FormEditHistoryAnalyseParam(m_viewModel.CurrentTask, s.AlgthmType, s.AnalyseParam);
                 if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                 {
                     //m_viewModel.CurrentTask.AnalyseParam = f.Task.AnalyseParam;
                     bool ret = m_viewModel.ReAnalyse(f.AlgthmType, f.AnalyseParam);
                     if (ret)
                     {
                         //m_isSplitTimeChanged = false;
                         //this.highlighter1.SetHighlightColor(this.comboBoxExSplitTime, DevComponents.DotNetBar.Validator.eHighlightColor.None);
                     }
                 }
             }
         }
     }
     catch (SDKCallException ex)
     {
         MessageBoxEx.Show("当前状态无法进行重新分析,[" + ex.ErrorCode + "]" + ex.Message, Framework.Environment.PROGRAM_NAME);
     }
 }
コード例 #2
0
 private void buttonItem1_Click(object sender, EventArgs e)
 {
     try
     {
         DevComponents.DotNetBar.ButtonItem buttonItem = sender as DevComponents.DotNetBar.ButtonItem;
         if (sender != null)
         {
             var s = buttonItem.Tag as StatusInfoV3_1;
             if (s != null)
             {
                 if ((Program.PRODUCT_TYPE & Framework.Environment.E_PRODUCT_TYPE.PuDong_PRODUCT) > 0)
                 {
                     FormEditRealtimeAnalyseParamNoDIO f = new FormEditRealtimeAnalyseParamNoDIO(m_viewModel.CurrentTask.TaskId, s.AlgthmType, s.AnalyseParam);
                     if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                     {
                         //m_viewModel.CurrentTask.AnalyseParam = f.Task.AnalyseParam;
                         m_viewModel.PauseTask();
                         bool ret = m_viewModel.ReAnalyse(f.AlgthmType, f.AnalyseParam);
                         if (ret)
                         {
                         }
                         m_viewModel.ResumeTask();
                     }
                 }
                 else
                 {
                     FormEditRealtimeAnalyseParam f = new FormEditRealtimeAnalyseParam(m_viewModel.CurrentTask, s.AlgthmType, s.AnalyseParam);
                     if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                     {
                         //m_viewModel.CurrentTask.AnalyseParam = f.Task.AnalyseParam;
                         m_viewModel.PauseTask();
                         bool ret = m_viewModel.ReAnalyse(f.AlgthmType, f.AnalyseParam);
                         if (ret)
                         {
                         }
                         m_viewModel.ResumeTask();
                     }
                 }
             }
         }
     }
     catch (SDKCallException ex)
     {
         MessageBoxEx.Show("当前状态无法进行重新分析,[" + ex.ErrorCode + "]" + ex.Message, Framework.Environment.PROGRAM_NAME);
     }
 }