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