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; }
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); }
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; }
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); }
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; }
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; }