示例#1
0
 private void Button_Click_2(object sender, RoutedEventArgs e)
 {
     try
     {
         wpfEmployee frm = new wpfEmployee();
         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;
     }
 }
示例#2
0
 private void ListBoxItem_MouseUp_4(object sender, MouseButtonEventArgs e)
 {
     try
     {
         wpfEmployee frm = new wpfEmployee();
         frm.ShowDialog();
     }
     catch (Exception ex)
     {
         System.Windows.MessageBox.Show("Runtime Error: " + ex.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
         return;
     }
 }