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