public static void ShowNonModal(string title, string message)
 {
     if (d != null)
     {
         SetTitle(title);
         SetText(message);
     }
     else
     {
         d = new ProgressDialog(title, message);
     }
     SetProgress(0, 100);
     SetProgressStyle(true);
     d.ShowInTaskbar = true;
     d.Show();
 }
 public static void CreateForm()
 {
     if (d == null)
         d = new ProgressDialog("", "");
 }
 public static DialogResult ShowModal(IWin32Window w, string title, string message)
 {
     if (d != null)
     {
         SetTitle(title);
         SetText(message);
     }
     else
     {
         d = new ProgressDialog(title, message);
     }
     SetProgress(0, 100);
     SetProgressStyle(true);
     return d.ShowDialog_(w);
 }