Exemple #1
0
 public void ExportToCSV(string filepath, TreeNode treeNode, List<double> range)
 {
     this.m_StatusBarService.SetCurProgress(0);
     if (treeNode != null)
     {
         if (treeNode.Level == 1)
         {
             this.m_PredictionGroup = this.m_ControllerMgr.IPredictionModel.GetGroupByName(treeNode.Text);
         }
         else
         {
             this.m_PredictionGroup = this.m_ControllerMgr.IPredictionModel.GetGroupByName(treeNode.Parent.Text);
         }
         this.m_range = range;
         this.m_StatusBarService.SetCurProgress(1);
         List<IStudy> studyList = this.GetStudyList(treeNode);
         ExportBinData data = new ExportBinData(this.m_appContext, this.m_PredictionGroup);
         ExportByPilotParam parameter = new ExportByPilotParam(filepath, studyList, this.m_BasicStudyName, range);
         ParameterizedThreadStart start = new ParameterizedThreadStart(data.ExportDataByPilotPower);
         new Thread(start).Start(parameter);
     }
 }
 private bool ExportTOCSV(string filepath, string polygon)
 {
     if (this.m_selectNode == null)
     {
         return false;
     }
     List<IStudy> studyList = this.GetStudyList(this.m_selectNode.Level == 1);
     ExportBinData data = new ExportBinData(this.m_appContext, this.m_PredictionGroup);
     ExportByPolygonParam parameter = new ExportByPolygonParam(filepath, studyList, this.GetPolygonRegion(polygon));
     ParameterizedThreadStart start = new ParameterizedThreadStart(data.ExportByPolygon);
     new Thread(start).Start(parameter);
     return true;
 }