private void Activated (object sender, EventArgs eargs) { PackageBuilderViewModel viewModel = new PackageBuilderViewModel(); var packageBuilder = new PackageBuilderWindow(viewModel); packageBuilder.Show(); }
private void Activated(object sender, EventArgs eargs) { PackageBuilderViewModel viewModel = new PackageBuilderViewModel(); var packageBuilder = new PackageBuilderWindow(viewModel); packageBuilder.Show(); }
private void OnPackageExperimentButtonClicked(object sender, EventArgs e) { var pckBuilderViewModel = new TraceLab.Core.PackageBuilder.PackageBuilderViewModel( m_applicationViewModel.Experiment, m_applicationViewModel.WorkspaceViewModel.SupportedTypes); var packageBuilder = new PackageBuilderWindow(pckBuilderViewModel); packageBuilder.Show(); }
private void OnPackageExperimentButtonClicked (object sender, EventArgs e) { // HERZUM SPRINT 4: TLAB-215 string message = ""; if (m_applicationViewModel.Experiment != null && m_applicationViewModel.Experiment.ThereAreNodeErrors (out message)){ ShowMessageDialog(message, "Packaging Error", Gtk.ButtonsType.Ok, Gtk.MessageType.Error); return; } // END HERZUM SPRINT 4.1: TLAB-215 try { // END HERZUM SPRINT 4.1: TLAB-215 var pckBuilderViewModel = new TraceLab.Core.PackageBuilder.PackageBuilderViewModel ( m_applicationViewModel.Experiment, m_applicationViewModel.WorkspaceViewModel.SupportedTypes); var packageBuilder = new PackageBuilderWindow (pckBuilderViewModel); packageBuilder.Show (); // HERZUM SPRINT 4.1: TLAB-215 } catch (Exception ex) { TraceLabSDK.IProgress progress = m_applicationContext.MainWindow.WindowShell.StatusBar; progress.CurrentStatus = "Operation failed: " + ex.Message; return; } // END HERZUM SPRINT 4.1: TLAB-215 }