Пример #1
0
 /// <summary>
 ///     Handles when an analysis has been loaded.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void LoadingAnalysisViewModel_AnalysisLoaded(object sender, AnalysisStatusArgs e)
 {
     DisplayAnalysis(e.Analysis);
 }
Пример #2
0
        /// <summary>
        ///     Adds the finished analysis back into the UI
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void AnalysisRunningViewModel_AnalysisComplete(object sender, AnalysisStatusArgs e)
        {
            var path = e.Configuration.AnalysisPath;
            var name = Path.GetFileName(e.Configuration.AnalysisName);
            var recent = new RecentAnalysis(path, name);
            StateModerator.CurrentViewState = ViewState.AnalysisView;
            StateModerator.CurrentAnalysisState = AnalysisState.Viewing;

            GettingStartedViewModel.AddAnalysis(recent);
            DisplayAnalysis(e.Configuration.Analysis);
        }