コード例 #1
0
        public virtual void Initialize()
        {
            _AppManager = MyAppManager.Instance;
            if (_AppManager.AppMode == AppMode.HE)
            {
                _ShellService = MyAppManager.Instance.CompositionContainer.GetExportedValue <IShellService>();
            }
            else
            {
                _ShellService = MyAppManager.Instance.CompositionContainer.GetExportedValue <IShellService>();
            }
            _ProjectService    = MyAppManager.Instance.CompositionContainer.GetExportedValue <IProjectService>();
            _ActiveDataService = MyAppManager.Instance.CompositionContainer.GetExportedValue <IActiveDataService>();

            ContextMenuItems.Add(new ExplorerMenuItem("Property", Resources.property16, ProjectItem_PropertyClicked));
            AddMenuItems();
        }
コード例 #2
0
 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;
 }