Exemplo 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();
        }
Exemplo n.º 2
0
 void terminalEvents_OnTouchNumber_handling()
 {
     this.currentState = stateService.CurrentState;
     this.render(()=>this.FiledPlayslips);
 }
Exemplo n.º 3
0
 void terminalEvents_EndOfTask_handling()
 {
     this.currentState = stateService.CurrentState;
     this.render();
 }