コード例 #1
0
 public static void Fechar()
 {
     if (waitForm != null)
     {
         try { waitForm.Close(); }
         catch { }
         waitForm = null;
     }
 }
コード例 #2
0
 /// <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;
 }
コード例 #3
0
        public static void Mostrar(string message)
        {
            if (waitForm == null)
            {
                waitForm = new WaitForm(message);
            }

            waitForm.lblMsg.Text = message;

            if (!waitForm.Visible)
            {
                waitForm.Show();
            }

            waitForm.Refresh();
        }