public bool Validar() { bool retorno = true; if (LueProfesor.ItemIndex < 0) { errorP1.SetError(LueProfesor, "Debe seleccionar un profesor"); LueProfesor.Focus(); retorno = false; } else { errorP1.SetError(LueProfesor, ""); } if (LueCurso.ItemIndex < 0) { errorP1.SetError(LueCurso, "Debe seleccionar un curso"); LueCurso.Focus(); retorno = false; } else { errorP1.SetError(LueCurso, ""); } if (LuePeriodo.ItemIndex < 0) { errorP1.SetError(LuePeriodo, "Debe seleccionar un periodo"); LuePeriodo.Focus(); retorno = false; } else { errorP1.SetError(LuePeriodo, ""); } if (LueMateria.ItemIndex < 0) { errorP1.SetError(LueMateria, "Debe seleccionar una materia"); LueMateria.Focus(); retorno = false; } else { errorP1.SetError(LueMateria, ""); } return(retorno); }
public bool Validar() { bool retorno = true; if (LueMateria.ItemIndex < 0) { errorP1.SetError(LueMateria, "Debe seleccionar una materia"); LueMateria.Focus(); retorno = false; } else { errorP1.SetError(LueMateria, ""); } if (LueProfesor.ItemIndex < 0) { errorP1.SetError(LueProfesor, "Debe seleccionar un profesor"); LueProfesor.Focus(); retorno = false; } else { errorP1.SetError(LueProfesor, ""); } if (TxtIhs.EditValue == null || TxtIhs.EditValue.ToString() == "") { errorP1.SetError(TxtIhs, "Debe seleccionar un profesor"); TxtIhs.Focus(); retorno = false; } else { if (Convert.ToInt32(TxtIhs.EditValue) == 0) { errorP1.SetError(TxtIhs, "Debe seleccionar un profesor"); TxtIhs.Focus(); retorno = false; } else { errorP1.SetError(TxtIhs, ""); } } return(retorno); }
public bool Validar() { bool retorno = true; if (LueMateria.ItemIndex < 0) { errorP1.SetError(LueMateria, "Debe seleccionar una materia"); LueMateria.Focus(); retorno = false; } else { errorP1.SetError(LueMateria, ""); } return(retorno); }