private void btnClients_Copy3_Click(object sender, RoutedEventArgs e) { try { wpfSelectPayment frm = new wpfSelectPayment(); frm.UserID = UserID; frm.ShowDialog(); } catch (Exception ex) { System.Windows.MessageBox.Show("Runtime Error: " + ex.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error); return; } }
private void itm10_MouseUp(object sender, MouseButtonEventArgs e) { try { wpfSelectPayment frm = new wpfSelectPayment(); frm.ShowDialog(); } catch (Exception ex) { System.Windows.MessageBox.Show("Runtime Error: " + ex.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error); return; } }