Example #1
0
        private bool SetError(int error)
        {
            bool paso = false;
            int  ejem = 0;

            if (error == 1 && int.TryParse(CriteriotextBox.Text, out ejem) == false)
            {
                PagoerrorProvider.SetError(CriteriotextBox, "Debe de introducir un numero");
                paso = true;
            }
            if (error == 2 && TipocomboBox.SelectedIndex == 0)
            {
                PagoerrorProvider.SetError(TipocomboBox, "Debe introducir porque filtro va a consultar");
            }
            return(paso);
        }
Example #2
0
 private void LimpiarError()
 {
     PagoerrorProvider.Clear();
 }