Esempio n. 1
0
        public TerminalVm(IStateService stateService, ITerminalEvents terminalEvents, ITerminalTasks terminalTasks)
        {
            this.terminalTasks = terminalTasks.notNull();
            this.stateService = stateService.notNull();
            this.terminalEvents = terminalEvents.notNull();

            currentState = stateService.CurrentState;
            terminalEvents.EndOfService += (s, e) => terminalEvents_EndOfTask_handling();
            terminalEvents.OnTouchNumber += (s, e) => terminalEvents_OnTouchNumber_handling();
        }
Esempio n. 2
0
 void terminalEvents_OnTouchNumber_handling()
 {
     this.currentState = stateService.CurrentState;
     this.render(()=>this.FiledPlayslips);
 }
Esempio n. 3
0
 void terminalEvents_EndOfTask_handling()
 {
     this.currentState = stateService.CurrentState;
     this.render();
 }