コード例 #1
0
 private void ExecuteBackspaceCommand(EmptyCommandArgument arg)
 {
     RestartStateTimer();
     PaymentAmount = PaymentAmount.Substring(0, PaymentAmount.Length - 1);
 }
コード例 #2
0
 protected virtual void ExecuteCancelCommand(EmptyCommandArgument args)
 {
     OnKioskStateChanged(new KioskStateChangedEventArgs("cancel"));
 }
コード例 #3
0
 private bool CanExecuteBackspaceCommand(EmptyCommandArgument arg)
 {
     return PaymentAmount.Length > 0;
 }
コード例 #4
0
 protected override bool CanExecuteHomeCommand(EmptyCommandArgument arg)
 {
     return !TransactionContext.CashCycleInProgress && State.KioskActions.Where(a => a.Name.ToLower() == "home").Count() == 1;
 }
コード例 #5
0
 protected virtual bool CanExecuteCancelCommand(EmptyCommandArgument args)
 {
     return State.KioskActions.Where(a => a.Name.ToLower() == "cancel").Count() == 1;
 }
コード例 #6
0
 private bool CanExecuteBackspaceCommand(EmptyCommandArgument arg)
 {
     return CustomerNumber.Length > State.LeadDigits.Length;
 }
コード例 #7
0
 private void ExecuteBackspaceCommand(EmptyCommandArgument arg)
 {
     CustomerNumber = CustomerNumber.Substring(0, CustomerNumber.Length - 1);
 }
コード例 #8
0
 protected virtual void ExecuteHomeCommand(EmptyCommandArgument arg)
 {
     OnKioskStateChanged(new KioskStateChangedEventArgs("home"));
 }
コード例 #9
0
 protected virtual void ExecuteBackCommand(EmptyCommandArgument arg)
 {
     TransactionContext.isForward = false;
     OnKioskStateChanged(new KioskStateChangedEventArgs("back"));
 }
コード例 #10
0
        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;
        }
コード例 #11
0
 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;
 }
コード例 #12
0
        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;
        }