Esempio n. 1
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            Window.Current.CoreWindow.KeyDown -= CoreWindowKeyDown;
            Window.Current.CoreWindow.KeyDown += CoreWindowKeyDown;

            _msrService = new MSRService();
            _msrService.Start(null);
            _msrService.ReadCompleted -= OnReadCompleted;
            _msrService.ReadCompleted += OnReadCompleted;
        }
Esempio n. 2
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     base.OnNavigatedTo(e);
     Window.Current.CoreWindow.KeyDown -= CoreWindowKeyDown;
     Window.Current.CoreWindow.KeyDown += CoreWindowKeyDown;
     Loaded     -= OnLoaded;
     Loaded     += OnLoaded;
     _msrService = new MSRService();
     _msrService.Start(null);
     _msrService.ReadCompleted -= OnReadCompleted;
     _msrService.ReadCompleted += OnReadCompleted;
     CardNumberBox.Focus(FocusState.Programmatic);
 }
Esempio n. 3
0
 public AckrooAccoutBalance()
 {
     this.InitializeComponent();
     this.DataContext = AckrooTenderVM;
     Window.Current.CoreWindow.KeyDown -= CoreWindowKeyDown;
     Window.Current.CoreWindow.KeyDown += CoreWindowKeyDown;
     //Loaded -= OnLoaded;
     //Loaded += OnLoaded;
     _msrService = new MSRService();
     _msrService.Start(null);
     //_msrService.ReadCompleted -= OnReadCompleted;
     //_msrService.ReadCompleted += OnReadCompleted;
 }
Esempio n. 4
0
 public AckrooTenderPopup()
 {
     this.InitializeComponent();
     this.DataContext = AckrooTenderVM;
     Window.Current.CoreWindow.KeyDown -= CoreWindowKeyDown;
     Window.Current.CoreWindow.KeyDown += CoreWindowKeyDown;
     Loaded     -= OnLoaded;
     Loaded     += OnLoaded;
     _msrService = new MSRService();
     _msrService.Start(null);
     _msrService.ReadCompleted -= OnReadCompleted;
     _msrService.ReadCompleted += OnReadCompleted;
     CardNumberBox.Focus(FocusState.Programmatic);
 }
Esempio n. 5
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            Window.Current.CoreWindow.KeyDown -= CoreWindowKeyDown;
            Window.Current.CoreWindow.KeyDown += CoreWindowKeyDown;
            SaleSummaryVM.PrintReceiptEvent   -= PrintReceipt;
            SaleSummaryVM.PrintReceiptEvent   += PrintReceipt;
            App.AppServiceConnected           -= PrintReceipt_AppServiceConnected;
            App.AppServiceConnected           += PrintReceipt_AppServiceConnected;
            if (!NavigateService.Instance.IsNavigatedFromFreezeScreen)
            {
                ResetVM();
            }

            _msrService = new MSRService();
            _msrService.Start(null);
            _msrService.ReadCompleted -= OnReadCompleted;
            _msrService.ReadCompleted += OnReadCompleted;
        }
Esempio n. 6
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            Window.Current.CoreWindow.KeyDown -= CoreWindowKeyDown;
            Window.Current.CoreWindow.KeyDown += CoreWindowKeyDown;

            amount.KeyUp -= AmountKeyUp;
            amount.KeyUp += AmountKeyUp;

            CustomersList.SelectionChanged -= CustomersListSelectionChanged;
            CustomersList.SelectionChanged += CustomersListSelectionChanged;

            this.Loaded -= OnLoaded;
            this.Loaded += OnLoaded;

            _msrService = new MSRService();
            _msrService.Start(null);
            _msrService.ReadCompleted -= OnReadCompleted;
            _msrService.ReadCompleted += OnReadCompleted;
        }