Example #1
0
 public void Close()
 {
     openedProject = null;
     ProjectClosed(this, new EventArgs());
     Dispose();
 }
Example #2
0
 public static bool TryGetOpenedProject(out Project result)
 {
     if (openedProject != null)
     {
         result = openedProject;
         return true;
     }
     result = null;
     return false;
 }
Example #3
0
 public void Open()
 {
     if (openedProject != null)
     {
         openedProject.Close();
     }
     openedProject = this;
     ProjectOpened(this, new ProjectOpenedEventArgs(lastSavedApplicationSettings));
     if (AnalysisInputData != null)
     {
         AnalysisInputDataImported(this, new EventArgs());
     }
     if (USPUniversalInputData != null)
     {
         USPUniversalInputDataImported(this, new EventArgs());
     }
     if (USPSampleInputData != null)
     {
         USPSampleInputDataImported(this, new EventArgs());
     }
     if (analysisResults[AnalysisAlgorithm.PCA] != null)
     {
         PCAPerformed(this, new AnalysisPerformedEventArgs(analysisResults[AnalysisAlgorithm.PCA]));
     }
     if (analysisResults[AnalysisAlgorithm.KPCA] != null)
     {
         KPCAPerformed(this, new AnalysisPerformedEventArgs(analysisResults[AnalysisAlgorithm.KPCA]));
     }
     if (IsSaved)
     {
         ProjectSaved(this, new EventArgs());
     }
 }