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