public static FormWaitMessage ShowMessage(Form owner, string text)
        {
            FormWaitMessage f = new FormWaitMessage();

            f.Owner = owner;
            f.SetText(text);
            f.Show();
            Application.DoEvents();
            return(f);
        }
 public void Dispose()
 {
     _form.Close();
     _form.Dispose();
     _form = null;
 }
 public ShowWaitMessage(Form owner, string message)
 {
     _form = FormWaitMessage.ShowMessage(owner, message);
 }