예제 #1
0
        private void newRecentItemButton_Click(object sender, RoutedEventArgs e)
        {
            var newRecentItemButton = e.OriginalSource as Button;

            if (newRecentItemButton != null)
            {
                var mainWindow = Application.Current.MainWindow as MainWindow;

                if (mainWindow != null && newRecentItemButton.Tag != null)
                {
                    var analysisJobViewModel = RecentAnalysisJobHelper.GetRecentAnalysisJobItem(newRecentItemButton.Tag.ToString());

                    var result = BackgroundWorkProcessHelper.Process(new AnalysisJobBackgroundWorkHelper(analysisJobViewModel));

                    if (result != null)
                    {
                        result = BackgroundWorkProcessHelper.Process(new MtdbProcessorBackgroundWorkHelper(analysisJobViewModel));

                        if (analysisJobViewModel.Database != null)
                        {
                            mainWindow.NewWorkspacePage(analysisJobViewModel);
                        }
                    }
                }
            }
        }
예제 #2
0
 public object SaveAnalysisDatabase(string fileName)
 {
     return(BackgroundWorkProcessHelper.Process(new MtdbWriterBackgroundWorkHelper(this, fileName)));
 }
예제 #3
0
 public object ProcessAnalysisDatabase()
 {
     return(BackgroundWorkProcessHelper.Process(new MtdbProcessorBackgroundWorkHelper(this)));
 }
예제 #4
0
 public object ProcessAnalysisTargets()
 {
     return(BackgroundWorkProcessHelper.Process(new AnalysisJobBackgroundWorkHelper(this)));
 }