private void ConsultaMontosAportados_Load(object sender, EventArgs e) { this.misDatos = DatosCurso.AbrirDatosCurso(); this.mostrarLinkLabel.Enabled = false; this.CargaListaEnGrillaDeDatos(); this.ActivarListado(); }
private void EstadoAvanceForm_Load(object sender, EventArgs e) { this.misDatos = DatosCurso.AbrirDatosCurso(); this.mostrarLinkLabel.Enabled = false; this.CargaListaEnGrillaDeDatos(); this.ActivarListado(); }
private void ClientesForm_Load(object sender, EventArgs e) { this.misDatos = DatosCurso.AbrirDatosCurso(); this.tipoRepresentanteComboBox.BeginUpdate(); this.tipoRepresentanteComboBox.DataSource = misDatos.ObtenerTiposDeRepresentantes(); this.tipoRepresentanteComboBox.DisplayMember = "descripcion"; this.tipoRepresentanteComboBox.ValueMember = "id_tiporepresentante"; this.tipoRepresentanteComboBox.EndUpdate(); this.editarLinkLabel.Enabled = false; this.inhabilitarLinkLabel.Enabled = false; this.habilitarCheckBox.Visible = false; this.CargaListaEnGrillaDeDatos(); this.estadoGrabacion = TipoGrabacion.None; this.ActivarListado(); }
private void MostrarValores() { DataTable myDataTable = DatosCurso.AbrirDatosCurso().ObtenerAvancesDeCursos(this.idCurso); if (myDataTable.Rows.Count.Equals(0)) { this.totalTextBox.Text = "$0"; this.montoCanceladoTextBox.Text = "$0"; this.diferenciaTextBox.Text = "$0"; return; } DataRow myRow = myDataTable.Rows[0]; this.totalTextBox.Text = myRow["Total_a_pagar"].ToString(); this.montoCanceladoTextBox.Text = myRow["Total_a_pagar"].ToString(); this.diferenciaTextBox.Text = myRow["Diferencia"].ToString(); }