Beispiel #1
0
 public ReactorViewModel(
     long id,
     long reactorId,
     string caption,
     string reactType,
     short reactNumber,
     IAppRepository repo,
     AuthenticationService authService,
     StatusMessageService messageService,
     IBookedOrderLookup orders,
     ITaskViewModelFactory factory
     )
 {
     ReactorScheduleID        = id;
     ReactorID                = reactorId;
     Caption                  = caption;
     ReactType                = reactType;
     ReactorNumber            = reactNumber;
     _repo                    = repo;
     _authService             = authService;
     _messageService          = messageService;
     _factory                 = factory;
     _orders                  = orders;
     _tasks                   = new TaskCollection();
     _insertCustomTaskCommand = new RelayCommand <String>((type) => InsertCustomTask(type), (type) => AuthenticationService.IsPlanner);
     _deleteTaskCommand       = new RelayCommand(RemoveSelectedTask, () => AuthenticationService.IsPlanner);
     _doubleClickCommand      = new RelayCommand <TaskViewModel>(OnDoubleClick);
     _workcells               = StaticRepository.Workcells.ToList();
 }
Beispiel #2
0
 public TaskViewModelFactory(IResolutionRoot resolutionRoot, IBookedOrderLookup lookup)
 {
     this.resolutionRoot = resolutionRoot;
     this.repo           = this.resolutionRoot.Get <IAppRepository>();
     this.lookup         = lookup;
 }