/// <summary>
 /// Close wait window if already opened
 /// </summary>
 public static void CloseWaitWindow()
 {
     if(_loadingWindow != null)
     {
         _loadingWindow.Hide();
         _loadingWindow.Close();
     }
     _loadingWindow = null;
 }
 /// <summary>
 ///  Show loading window to user
 /// </summary>
 /// <param name="displayText">Specify display text</param>
 public static void ShowWaitWindow(String displayText)
 {
     if (_loadingWindow != null)
     {
         CloseWaitWindow();
     }
     _loadingWindow = new LoadingWindow(displayText);
     _loadingWindow.Show();
     _loadingWindow.Update();
 }
 /// <summary>
 /// Show loading window to user
 /// </summary>
 public static void ShowWaitWindow()
 {
     if(_loadingWindow != null)
     {
        CloseWaitWindow();
     }
     _loadingWindow = new LoadingWindow();
     _loadingWindow.Show();
     _loadingWindow.Update();
 }