예제 #1
0
        public void ShowProcessingDialog(object value)
        {
            _eventAggregator.GetEvent<StatusUpdateEvent>().Publish("Ready");
            ProcessingDialogView dialog = new ProcessingDialogView(_serviceLocator.GetInstance<ProcessingDialogViewModel>());
            dialog.Owner = Application.Current.MainWindow;
            dialog.ShowDialog();

            if (dialog.StartProcessing)
            {
                _eventAggregator.GetEvent<StatusUpdateEvent>().Publish("Processing...");
                _algorithm = dialog.ViewModel.SelectedAlgorithm;
                ProgressDialog progressDialog = new ProgressDialog("Processing");
                progressDialog.Owner = Application.Current.MainWindow;
                progressDialog.RunWorkerThread(DoWork);
            }
        }
 private void HandleReprocessing(object sender, EventArgs e)
 {
     ProgressDialog progressDialog = new ProgressDialog("Processing");
     progressDialog.Owner = Application.Current.MainWindow;
     progressDialog.RunWorkerThread(DoWork);
 }
예제 #3
0
        private void OnCreateProject(ProjectBase project)
        {
            CreateProjectHelper.ConvertExperimentReferencesToExperiments(project, _serviceLocator);

            Experiment experiment = project.Experiments.First() as Experiment;

            WizardShell wizard = new WizardShell(_regionManager, CreateProjectHelper.CreateController(experiment, _regionManager, _serviceLocator));
            wizard.ShowDialog();

            if (wizard.Finished)
            {
                ProgressDialog dialog = new ProgressDialog("Creating experiment");

                dialog.RunWorkerThread(project, DoCreateProjectAndExperimentWork);

                _documentManager.Open(project.Location);
            }
        }