Esempio n. 1
0
        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();
        }
Esempio n. 2
0
        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
        }
Esempio n. 3
0
        // HERZUM SPRINT 3.1 TLAB-82
        private void PublishExperiment (String filePathPackage)
        {
            // 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: TLAB-215

            // END HERZUM SPRINT 4: TLAB-215
            try {
            // END HERZUM SPRINT 4: TLAB-215
                var pckBuilderViewModel = new TraceLab.Core.PackageBuilder.PackageBuilderViewModel (
                    m_applicationViewModel.Experiment, 
                    m_applicationViewModel.WorkspaceViewModel.SupportedTypes);

                pckBuilderViewModel.ExperimentPackageConfig.IncludeIndependentFilesDirs = true;
                pckBuilderViewModel.ExperimentPackageConfig.IncludeOtherPackagesAssemblies = true;
                pckBuilderViewModel.ExperimentPackageConfig.IncludeOtherPackagesFilesDirs = true;

                if (pckBuilderViewModel.PackageSourceInfo == null)
                    pckBuilderViewModel.PackageSourceInfo = new TraceLab.Core.PackageBuilder.PackageSourceInfo ();
                pckBuilderViewModel.PackageSourceInfo.Name = m_applicationViewModel.Experiment.ExperimentInfo.Name;

                var challengePackageBuilder = new ChallengePackageBuilder (pckBuilderViewModel);

                challengePackageBuilder.Build (filePathPackage);
            // 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

        }
Esempio n. 4
0
        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();
        }