Пример #1
0
 private void BORRAR_MENSAJE_ERROR()
 {
     foreach (Control cr in this.Controls)
     {
         ERROREMPTYTXTLOGIN.SetError(cr, null);
     }
 }
Пример #2
0
        private bool VALIDAR_NO_VACIOS()
        {
            bool ok = true;

            foreach (Control ctrl in this.Controls)
            {
                if (ctrl is TextBox)
                {
                    TextBox txt = ctrl as TextBox;
                    if (string.IsNullOrEmpty(txt.Text))
                    {
                        ok = false;
                        ERROREMPTYTXTLOGIN.SetError(txt, "INGRESA DATO");
                    }
                }
            }
            return(ok);
        }