public static void Fechar() { if (waitForm != null) { try { waitForm.Close(); } catch { } waitForm = null; } }
/// <summary> /// Configura o progressbar /// </summary> /// <param name="maxValue">Menor que 1, desabilita</param> public static void SetupProgress(int maxValue) { if (waitForm == null) { waitForm = new WaitForm(""); } if (maxValue < 1) { waitForm.progressBar1.Visible = false; return; } waitForm.progressBar1.Value = waitForm.progressBar1.Minimum; waitForm.progressBar1.Maximum = maxValue; }
public static void Mostrar(string message) { if (waitForm == null) { waitForm = new WaitForm(message); } waitForm.lblMsg.Text = message; if (!waitForm.Visible) { waitForm.Show(); } waitForm.Refresh(); }