public WorkerViewModel() { _workOrderRepository = new WorkOrderSQLServer(); Worker1StartButton = new DelegateCommand(Worker1StartButtonExecute); Worker2StartButton = new DelegateCommand(Worker2StartButtonExecute); Worker3StartButton = new DelegateCommand(Worker3StartButtonExecute); _timeManagementRepository = new TimeManagementSQLServer(); observableTimer = Observable.Timer(TimeSpan.FromSeconds(1), TimeSpan.FromSeconds(2)) .Subscribe(_ => { LabelContent.Value += 1; WorkerWorkings.Value = new ObservableCollection <WorkingEntity>(WorkingData.GetWorkings(WorkId.Value, WorkerId.Value)); }); NextCommand = CanNext.Select(x => x == false).ToReactiveCommand(); NextCommand.Subscribe(_ => { _workOrderRepository.ToNext(WorkId.Value, WorkerId.Value); }); WorkerId.Subscribe(x => { }); }