public StateMonitorController(StateMonitorViewModel vm, RunningMonitorViewModel running, IProjectService project)
 {
     _StateMonitor             = vm;
     _RunningMonitor           = running;
     _ProjectService           = project;
     _StateMonitor.LoadCommand = new DelegateCommand(Load, CanLoad);
 }
 public void InitService()
 {
     viewModel = MyAppManager.Instance.CompositionContainer.GetExportedValue <RunningMonitorViewModel>();
     viewModel.RunningStarted  += Monitor_RunningStarted;
     viewModel.RunningFinished += Monitor_RunningFinished;
     viewModel.MessageReported += viewModel_MessageReported;
     viewModel.ProgressChanged += viewModel_ProgressChanged;
 }
 public RunningMonitorController(RunningMonitorViewModel vm, StateMonitorViewModel state, IProjectService project)
 {
     _RunningMonitor                         = vm;
     _StateMonitor                           = state;
     _RunningMonitor.Start                   = new DelegateCommand(Start, CanStart);
     _RunningMonitor.Stop                    = new DelegateCommand(Stop, CanStop);
     _RunningMonitor.ProjectService          = project;
     _ProjectService                         = project;
     _ProjectService.ProjectOpenedOrCreated += ProjectService_ProjectOpenedOrCreated;
 }
 public ProjectController(IShellService shellService, IActiveDataService dataservice, IProjectService projectServ,
                          IPackageUIService packageUIService, StateMonitorViewModel state, IPackageService pck_service, RunningMonitorViewModel rm_vm)
 {
     _ShellService              = shellService;
     _ActiveDataService         = dataservice;
     _ProjectService            = projectServ;
     _PackageService            = pck_service;
     _StateMonitor              = state;
     _PackageUIService          = packageUIService;
     _NewPrjCommand             = new DelegateCommand(AddNewProject, CanAddNewProject);
     _OpenPrjCommand            = new DelegateCommand(p => OpenProject(p), t => CanOpenProject(t, true));
     _ImportCommand             = new DelegateCommand(p => ImportFrom(p), CanImportFrom);
     _SaveCommand               = new DelegateCommand(SaveProject, CanSaveProject);
     _ClosePrjCommand           = new DelegateCommand(CloseProject, CanCloseProject);
     _MapFunctionManager        = new MapFunctionManager();
     _ConceputalModelManager    = new ConceputalModelManager();
     ProjectController.Instance = this;
     _RunningMonitorViewModel   = rm_vm;
 }