private void ExecuteBackspaceCommand(EmptyCommandArgument arg) { RestartStateTimer(); PaymentAmount = PaymentAmount.Substring(0, PaymentAmount.Length - 1); }
protected virtual void ExecuteCancelCommand(EmptyCommandArgument args) { OnKioskStateChanged(new KioskStateChangedEventArgs("cancel")); }
private bool CanExecuteBackspaceCommand(EmptyCommandArgument arg) { return PaymentAmount.Length > 0; }
protected override bool CanExecuteHomeCommand(EmptyCommandArgument arg) { return !TransactionContext.CashCycleInProgress && State.KioskActions.Where(a => a.Name.ToLower() == "home").Count() == 1; }
protected virtual bool CanExecuteCancelCommand(EmptyCommandArgument args) { return State.KioskActions.Where(a => a.Name.ToLower() == "cancel").Count() == 1; }
private bool CanExecuteBackspaceCommand(EmptyCommandArgument arg) { return CustomerNumber.Length > State.LeadDigits.Length; }
private void ExecuteBackspaceCommand(EmptyCommandArgument arg) { CustomerNumber = CustomerNumber.Substring(0, CustomerNumber.Length - 1); }
protected virtual void ExecuteHomeCommand(EmptyCommandArgument arg) { OnKioskStateChanged(new KioskStateChangedEventArgs("home")); }
protected virtual void ExecuteBackCommand(EmptyCommandArgument arg) { TransactionContext.isForward = false; OnKioskStateChanged(new KioskStateChangedEventArgs("back")); }
protected virtual bool CanExecuteHomeCommand(EmptyCommandArgument arg) { //bool temp = (!TransactionContext.CashCycleInProgress || !TransactionContext.CardCycleInProgress) && State.KioskActions.Where(a => a.Name.ToLower() == "home").Count() == 1; bool result = (!TransactionContext.CashCycleInProgress) && State.KioskActions.Where(a => a.Name.ToLower() == "home").Count() == 1; if (TransactionContext.CardCycleInProgress) result = (!TransactionContext.CardCycleInProgress) && State.KioskActions.Where(a => a.Name.ToLower() == "home").Count() == 1; Trace.WriteLine(string.Format("{0} Enable MainMenu Button : {1}", DateTime.Now, result)); return result; }
protected virtual bool CanExecuteHelpCommand(EmptyCommandArgument arg) { ////return double.Parse(TransactionContext.AmountPaid) <= 0 && State.KioskActions.Where(a => a.Name.ToLower() == "help").Count() == 1; return !TransactionContext.CashCycleInProgress && State.KioskActions.Where(a => a.Name.ToLower() == "help").Count() == 1; }
protected virtual bool CanExecuteBackCommand(EmptyCommandArgument arg) { ////return double.Parse(TransactionContext.AmountPaid) <= 0 && State.KioskActions.Where(a => a.Name.ToLower() == "back").Count() == 1; bool result = (!TransactionContext.CashCycleInProgress) && State.KioskActions.Where(a => a.Name.ToLower() == "back").Count() == 1; if (TransactionContext.CardCycleInProgress) result = (!TransactionContext.CardCycleInProgress) && State.KioskActions.Where(a => a.Name.ToLower() == "back").Count() == 1; Trace.WriteLine(string.Format("{0} Enable Back Button : {1}", DateTime.Now, result)); return result; }