private void btnExport_Click(object sender, EventArgs e)
 {
     ExportPrediction prediction = new ExportPrediction(this.m_PredictionGroupsManager, this.m_SubSysInterface);
     List<int> selectedMaxMinValue = this.GetSelectedMaxMinValue();
     if (selectedMaxMinValue.Count <= 0)
     {
         MessageBoxUtil.ShowInfo(LTEPredictionResource.PREDICTION_CONDITION_SELECT);
     }
     else
     {
         this.saveExportFile.AddExtension = true;
         this.saveExportFile.CheckPathExists = true;
         this.saveExportFile.CreatePrompt = false;
         this.saveExportFile.DefaultExt = "csv";
         this.saveExportFile.Filter = "Prediction File(*.csv)|*.csv";
         this.saveExportFile.FileName = "PredictionData.csv";
         this.saveExportFile.OverwritePrompt = true;
         this.saveExportFile.RestoreDirectory = true;
         this.saveExportFile.Title = LTEPredictionResource.PREDICTION_FILE_SAVE;
         if (DialogResult.OK == this.saveExportFile.ShowDialog())
         {
             prediction.ExportToCSV(this.saveExportFile.FileName, this.m_selectNode, selectedMaxMinValue);
         }
         base.Close();
     }
 }
Beispiel #2
0
 public void InitStage2()
 {
     this.InitializeSubSysInterface();
     this.m_SimulatinsubSys = ServiceHelper.Lookup<ILTESimToolTipManager>(this.m_AppContext);
     this.m_CalculateTagetValue = new CalculateTargetValue(this.m_PredictionGroupsManager, this.m_SubSysInterface);
     this.m_Tooltipdisplay = new ToolTipdisplayData(this.m_CalculateTagetValue, this.m_SimulatinsubSys, this.m_PredictionGroupsManager);
     this.m_SubSysInterface.AnalyDispEvent.AnalyGeoNodeTooltipEvnet += new AnalyGeoNodeTooltipEventHandle(this.m_Tooltipdisplay.GetCaculateAreaTip);
     IEventViewService eventViewService = this.m_SubSysInterface.EventViewService;
     this.m_PredictionContextMenuView.PredictionManager.SetProgressScopeDelegate(new SetProgressScope(eventViewService.SetProgressScope));
     IEventViewService service2 = this.m_SubSysInterface.EventViewService;
     this.m_PredictionContextMenuView.PredictionManager.SetReportProgressDelegate(new ReportProgress(service2.ReportProgress));
     IEventViewService service3 = this.m_SubSysInterface.EventViewService;
     this.m_PredictionContextMenuView.PredictionManager.ResetProgressScopeDelegate(new ResetProgress(service3.ResetProgress));
     IEventViewService service4 = this.m_SubSysInterface.EventViewService;
     this.m_PredictionContextMenuView.PredictionManager.SetReportTimeDelegate(new ReportTime(service4.ReportProgress));
     IPredictionPropertyOP service = new PredictionsPropertiesForm(this.m_PredictionGroupsManager, this.m_SubSysInterface);
     this.m_AppContext.RegisterService(service);
     this.m_AppContext.RegisterService(this.m_PredictionContextMenuView);
     this.m_AppContext.RegisterService(this.m_PredictionGroupsManager);
     IPredictionExportByPolygon polygon = new PredictionExportForm(this.m_SubSysInterface, this.m_PredictionGroupsManager);
     this.m_AppContext.RegisterService(polygon);
     IPredictionExportByRSRP yrsrp = new ExportPrediction(this.m_PredictionGroupsManager, this.m_SubSysInterface);
     this.m_AppContext.RegisterService(yrsrp);
     IPredictionDataExport export = new PrintexportEditor(this.m_SubSysInterface, this.m_PredictionGroupsManager);
     this.m_AppContext.RegisterService(export);
     //IRfPlanStop stop = ServiceHelper.Lookup<IRfPlanStop>(this.m_AppContext);
     //if (stop != null)
     //{
     //    stop.add_StopRfPlan(new RfPlanStopEventHandle(this.m_PredictionGroupsManager, (IntPtr) this.StopCalculate));
     //}
 }