private void Limpiar() { MyErrorProvider.Clear(); IdNumericUpDown.Value = 0; MetaComboBox.ResetText(); PersonaComboBox.ResetText(); ContribucionTextBox.Text = String.Empty; RestaTextBox.Text = String.Empty; }
private void Limpiar() { MyErrorProvider.Clear(); IdNumericUpDown.Value = 0; ActividadComboBox.ResetText(); PersonaComboBox.ResetText(); FechaDateTimePicker.Value = DateTime.Now; PresentesTextBox.Text = "0"; AusentesTextBox.Text = "0"; ExcusasTextBox.Text = "0"; TotalTextBox.Text = "0"; this.Detalle = new List <AsistenciasDetalle>(); CargarGrid(); }
private bool Validar() { bool paso = true; var colecta = ColectasBLL.Buscar(Convert.ToInt32(MetaComboBox.SelectedValue)); if (Convert.ToDouble(ContribucionTextBox.Text) + colecta.Logrado > colecta.Meta) { MyErrorProvider.SetError(ContribucionTextBox, "La contribucion excede la cantiadad faltante"); ContribucionTextBox.Focus(); paso = false; } if (string.IsNullOrWhiteSpace(PersonaComboBox.Text)) { MyErrorProvider.SetError(PersonaComboBox, "El campo Descripcion no puede estar vacio"); PersonaComboBox.Focus(); paso = false; } return(paso); }
private void PersonaComboBox_SelectedIndexChanged(object sender, EventArgs e) { PersonaComboBox.ResetText(); }