private void button_Click(object sender, RoutedEventArgs e) { var p = new LinkingRfidPage(ID); try { RfidNumber = TSnapRFID.Text; p.RFIDCodeTagsWriter = RfidNumber; } catch (FormatException) { MessageBox.Show((string)Application.Current.Resources[StringsMapper.EnterRfid], (string)Application.Current.Resources[StringsMapper.ErrorHeader], MessageBoxButton.OK, MessageBoxImage.Error); } _snapHelper.Snap(ID, RfidNumber); Singelton.Frame.NavigationService.Navigate(p); }
private void ClickLinkingButton(object sender, RoutedEventArgs e) { var p = new LinkingRfidPage(_id); NavigationService.Navigate(p); }