Example #1
0
        public WorkOrderViewModel()
        {
            _workOrderRepository      = new WorkOrderSQLServer();
            _timeManagementRepository = new TimeManagementSQLServer();
            StartButton = new DelegateCommand(StartButtonExecute);
            TimeButton  = new DelegateCommand(TimeButtonExecute);
            Time2Button = new DelegateCommand(Time2ButtonExecute);

            _timeRecorder = new TimeManagementServices(_timeManagementRepository.GetWorks());
            _displayTimer = new TimeDisplayTimer(new TimerCallback(TimeTest));
            _displayTimer.Start();
        }
Example #2
0
 static AutoWaitModeChangeTimer()
 {
     _timer = new Timer(Callback);
     _timeManagementRepository = new TimeManagementSQLServer();
     _timeRecorder             = new TimeManagementServices(_timeManagementRepository.GetWorks());
 }