Exemplo n.º 1
0
        public override bool Validar()
        {
            if (Validaciones.CampoVacio(this.txtNombre.Text) || Validaciones.CampoVacio(this.txtApellido.Text))
            {
                return(false);
            }
            if (Validaciones.CampoVacio(this.txtDireccion.Text) || Validaciones.CampoVacio(this.txtTelefono.Text))
            {
                return(false);
            }
            if (Validaciones.CampoVacio(this.cbTipoPersona.Text) || Validaciones.CampoVacio(this.txtLegajo.Text))
            {
                return(false);
            }

            /*if (Validaciones.EsMailValido(this.txtEmail.Text) == false)
             * {
             *  this.Notificar("Error", "Mail no valido", MessageBoxButtons.OK, MessageBoxIcon.Error);
             *  return false;
             * }*/
            else
            {
                return(true);
            }
        }
Exemplo n.º 2
0
 public override bool Validar()
 {
     if (Validaciones.CampoVacio(this.txtDesc.Text))
     {
         return(false);
     }
     return(true);
 }
Exemplo n.º 3
0
 public override bool Validar()
 {
     if (crearPersona == 0)
     {
         if (Validaciones.CampoVacio(this.txtNombre.Text) || Validaciones.CampoVacio(this.txtApellido.Text))
         {
             return(false);
         }
     }
     return(true);
 }