public StationVerificationViewModel() { // MyRegionManager.NavigateUsingViewModel<KeyboardViewModel>(RegionNames.UserManagementKeyboardRegion); AcceptCommand = new Command(OnAcceptCommand); TestModeCommand = new Command(OnTestModeCommand); CheckBarcodeScannerCommand = new Command(OnCheckBarcodeScanner); CheckCashAcceptorCommand = new Command(OnCheckCashAcceptor); CheckCoinAcceptorCommand = new Command(OnCheckCoinAcceptor); CheckIDCardCommand = new Command(OnCheckIDCard); CheckServerConnectionCommand = new Command(OnCheckServerConnection); UnfocusComand = new Command(OnUnfocus); dispatcherTimerCash.Tick += new EventHandler(dispatcherTimerCash_Tick); dispatcherTimerCash.Interval = new TimeSpan(0, 0, 1); dispatcherTimerCoin.Tick += new EventHandler(dispatcherTimerCoin_Tick); dispatcherTimerCoin.Interval = new TimeSpan(0, 0, 1); dispatcherTimerIdReader.Tick += new EventHandler(dispatcherTimerIdReader_Tick); dispatcherTimerIdReader.Interval = new TimeSpan(0, 0, 1); dispatcherTimerBarcodeScanner.Tick += new EventHandler(dispatcherBarcodeScanner_Tick); dispatcherTimerBarcodeScanner.Interval = new TimeSpan(0, 0, 1); KeydownCommand = new Command <KeyEventArgs>(OnKeyDown); }
public FoundUserProfileViewModel() { HidePleaseWait = false; BackCommand = new Command(OnBackCommand); ActivateCommand = new Command(OnActivate); HistoryCommand = new Command(OnHistory); ChangePasswordCommand = new Command(OnChangePassword); BlockCardCommand = new Command(OnBlockCard); NewPINCommand = new Command(OnNewPin); BindCardCommand = new Command(OnBindCard); }
public ChangePasswordReminderViewModel(params object[] args) { CancelCommand = new BaseObjects.Command(OnCancelCommand); SelectionChanged = new Command <object>(OnSelectionChanged); this.ChangePasswordCommandForced = new Command(this.OnChangePasswordExecuteForced); if (args.Length > 0) { if (args[0] is bool) { isForced = (bool)args[0]; } } }
public SystemStationVerificationViewModel() { AcceptCommand = new Command(OnVerifyStation); CheckBarcodeScannerCommand = new Command(OnCheckBarcodeScanner); CheckCashAcceptorCommand = new Command(OnCheckCashAcceptor); CheckCoinAcceptorCommand = new Command(OnCheckCoinAcceptor); CheckIDCardCommand = new Command(OnCheckIDCard); UnfocusComand = new Command(OnUnfocus); dispatcherTimerCash.Tick += new EventHandler(dispatcherTimerCash_Tick); dispatcherTimerCash.Interval = new TimeSpan(0, 0, 1); dispatcherTimerCoin.Tick += new EventHandler(dispatcherTimerCoin_Tick); dispatcherTimerCoin.Interval = new TimeSpan(0, 0, 1); dispatcherTimerIdReader.Tick += new EventHandler(dispatcherTimerIdReader_Tick); dispatcherTimerIdReader.Interval = new TimeSpan(0, 0, 1); dispatcherTimerBarcodeScanner.Tick += new EventHandler(dispatcherBarcodeScanner_Tick); dispatcherTimerBarcodeScanner.Interval = new TimeSpan(0, 0, 1); Mediator.Register <bool>(this, OnBarcodeScannerTest, MsgTag.BarcodeScannerTest); IsFocused = true; }
public AccountingBaseViewModel() { ShowCommand = new Command(ShowOverview); //CloseCommand = new Command(CloseWindow); CreateCheckpointCommand = new Command(OnCheckPoint); ShowCreditCommand = new Command(OnCredit); ShowCheckPointsCommand = new Command(OnShowCheckPoints); CheckPointsCommand = new Command(OnCheckPoints); BackCommand = new Command(OnBackCommand); EnabledCheckPoint = ChangeTracker.CurrentUser.CloseBalance; EnabledShowCheckPoints = ChangeTracker.CurrentUser.ViewStationBalance; EnabledCredit = ChangeTracker.CurrentUser.Credit; if (ChangeTracker.CurrentUser != null) { decimal cashinCurrentAmount, cashoutCurrentAmount; BusinessPropsHelper.GetAccountingAmount(out cashinCurrentAmount, out cashoutCurrentAmount); IsEnabledCloseBalance = cashinCurrentAmount - cashoutCurrentAmount > 0 && ChangeTracker.CurrentUser.EmptyBox; } }
public StationVerificationViewModel() { AcceptCommand = new Command(OnAcceptCommand); TestModeCommand = new Command(OnTestModeCommand); CheckBarcodeScannerCommand = new Command(OnCheckBarcodeScanner); CheckCashAcceptorCommand = new Command(OnCheckCashAcceptor); CheckCoinAcceptorCommand = new Command(OnCheckCoinAcceptor); CheckIDCardCommand = new Command(OnCheckIDCard); CheckServerConnectionCommand = new Command(OnCheckServerConnection); UnfocusComand = new Command(OnUnfocus); dispatcherTimerCash.Tick += new EventHandler(dispatcherTimerCash_Tick); dispatcherTimerCash.Interval = new TimeSpan(0, 0, 1); dispatcherTimerCoin.Tick += new EventHandler(dispatcherTimerCoin_Tick); dispatcherTimerCoin.Interval = new TimeSpan(0, 0, 1); dispatcherTimerIdReader.Tick += new EventHandler(dispatcherTimerIdReader_Tick); dispatcherTimerIdReader.Interval = new TimeSpan(0, 0, 1); dispatcherTimerBarcodeScanner.Tick += new EventHandler(dispatcherBarcodeScanner_Tick); dispatcherTimerBarcodeScanner.Interval = new TimeSpan(0, 0, 1); KeydownCommand = new Command <KeyEventArgs>(OnKeyDown); }