protected override void OnNavigatedFrom(NavigationEventArgs e) { Window.Current.CoreWindow.KeyDown -= CoreWindowKeyDown; SaleSummaryVM.PrintReceiptEvent -= PrintReceipt; App.AppServiceConnected -= PrintReceipt_AppServiceConnected; _msrService.Stop(); }
protected override void OnNavigatedFrom(NavigationEventArgs e) { base.OnNavigatedFrom(e); Window.Current.CoreWindow.KeyDown -= CoreWindowKeyDown; Loaded -= OnLoaded; _msrService.Stop(); }
private void DetachEvents() { Window.Current.CoreWindow.KeyDown -= CoreWindowKeyDown; amount.KeyUp -= AmountKeyUp; CustomersList.SelectionChanged -= CustomersListSelectionChanged; this.Loaded -= OnLoaded; _msrService.Stop(); }
protected override void OnNavigatingFrom(NavigatingCancelEventArgs e) { base.OnNavigatingFrom(e); Window.Current.CoreWindow.KeyDown -= CoreWindowKeyDown; _msrService.Stop(); }