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); } } } } }
public object SaveAnalysisDatabase(string fileName) { return(BackgroundWorkProcessHelper.Process(new MtdbWriterBackgroundWorkHelper(this, fileName))); }
public object ProcessAnalysisDatabase() { return(BackgroundWorkProcessHelper.Process(new MtdbProcessorBackgroundWorkHelper(this))); }
public object ProcessAnalysisTargets() { return(BackgroundWorkProcessHelper.Process(new AnalysisJobBackgroundWorkHelper(this))); }