static public void ShowWindow()
 {
     if (thisInstance == null)
     {
         thisInstance = new QueryWindow();
     }
     if (!thisInstance.IsVisible)
     {
         (thisInstance.DataContext as QueryWindowVM).ClearState();
         thisInstance.Show();
     }
 }
Example #2
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         DialogResult dialogResult = System.Windows.Forms.MessageBox.Show("Do you have any doubts/query?", "Reactions", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
         if (dialogResult == System.Windows.Forms.DialogResult.Yes)
         {
             //this.Hide();
             QueryWindow.SetTan(tanNumber, tanId);
             QueryWindow.ShowWindow();
         }
         else
         {
             AddReviewedUserId();
             DialogResult = DialogStatus = true;
         }
     }
     catch (Exception ex)
     {
         Log.This(ex);
     }
 }
Example #3
0
 private void QueryBtn_Click(object sender, RoutedEventArgs e)
 {
     QueryWindow.ShowWindow();
 }