public WorkbenchRefresher(WorkbenchViewModel viewModel, IAdministrationComponent component, IErrorHandler errorHandler)
 {
     this.ViewModel = viewModel;
     this.Component = component;
     this.Handle = errorHandler;
     this.Scheduler = viewModel.Scheduler;
     Thread.CurrentThread.CurrentUICulture = this.ViewModel.Culture;
 }
Beispiel #2
0
 public EditCommands(WorkbenchViewModel viewModel, IErrorHandler errorHandler)
     : base(viewModel, errorHandler)
 {
     this.InsuranceCommand = new RelayCommand(() => this.EditInsurance(), () => this.ViewModel.SelectedInsurance != null && PluginContext.DoorKeeper.IsUserGranted(To.Write));
     this.ProfessionCommand = new RelayCommand(() => EditProfession(), () => this.ViewModel.SelectedProfession != null && PluginContext.DoorKeeper.IsUserGranted(To.Write));
     this.PracticeCommand = new RelayCommand(() => this.EditPractice(), () => this.ViewModel.SelectedPractice != null && PluginContext.DoorKeeper.IsUserGranted(To.Write));
     this.PathologyCommand = new RelayCommand(() => this.EditPathology(), () => this.ViewModel.SelectedPathology != null && PluginContext.DoorKeeper.IsUserGranted(To.Write));
     this.DrugCommand = new RelayCommand(() => this.EditDrug(), () => this.ViewModel.SelectedDrug != null && PluginContext.DoorKeeper.IsUserGranted(To.Write));
     this.ReputationCommand = new RelayCommand(() => this.EditReputation(), () => this.ViewModel.SelectedReputation != null && PluginContext.DoorKeeper.IsUserGranted(To.Write));
     this.TagCommand = new RelayCommand(() => this.EditTag(), () => this.ViewModel.SelectedTag != null && PluginContext.DoorKeeper.IsUserGranted(To.Write));
     this.DoctorCommand = new RelayCommand(() => this.EditDoctor(), () => this.ViewModel.SelectedDoctor != null && PluginContext.DoorKeeper.IsUserGranted(To.Write));
     this.SearchTagCommand = new RelayCommand(() => this.EditSearchTag(), () => this.ViewModel.SelectedSearchTag != null && PluginContext.DoorKeeper.IsUserGranted(To.Write));
 }
Beispiel #3
0
 public BaseCommands(WorkbenchViewModel viewModel, IErrorHandler errorHandler)
 {
     this.ViewModel = viewModel;
     this.Handle = errorHandler;
     this.Component = PluginContext.ComponentFactory.GetInstance<IAdministrationComponent>();
 }