Exemplo n.º 1
0
 private void btnBank_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         wpfBank frm = new wpfBank();
         frm.UserID = UserID;
         frm.status = true;
         frm.ShowDialog();
     }
     catch (Exception ex)
     {
         System.Windows.MessageBox.Show("Runtime Error: " + ex.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
         return;
     }
 }
Exemplo n.º 2
0
 private void ListBoxItem_MouseUp_3(object sender, MouseButtonEventArgs e)
 {
     try
     {
         wpfBank frm = new wpfBank();
         frm.ShowDialog();
     }
     catch (Exception ex)
     {
         System.Windows.MessageBox.Show("Runtime Error: " + ex.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
         return;
     }
 }