Example #1
0
 private bool TestVide()
 {
     try
     {
         bool vide = false;
         if (txt_id.Text.Trim().Equals("") || txt_pwd.Text.Trim().Equals(""))
         {
             if (DialogResult.OK == Messages.ChampsVide())
             {
                 vide       = true;
                 nbreerror += 1;
                 object_temps.TextLabel("Il vous reste " + (p_bar.Maximum - nbreerror).ToString() + " essai(s)");
                 if (p_bar.Value < p_bar.Maximum)
                 {
                     object_bar.UpdateSimpleBar(1);
                 }
             }
         }
         return(vide);
     }
     catch (Exception ex)
     {
         Messages.Exception("Form_Login (TestVide)", ex);
         return(true);
     }
 }
Example #2
0
 public void RunContinuous()
 {
     if (pbar_start.Value == maximun)
     {
         _pbar.SetValueBar(0);
     }
     else
     {
         _pbar.UpdateSimpleBar(1);
     }
 }