private void BotonNuevo_Click(object sender, EventArgs e) { CursosDesktop cursosDesktop = new CursosDesktop(ApplicationForm.ModoForm.Alta); cursosDesktop.ShowDialog(); this.Listar(); }
private void tsbNuevo_Click(object sender, EventArgs e) { CursosDesktop form = new CursosDesktop(ApplicationForm.ModoForm.Alta); form.ShowDialog(); this.Listar(); }
private void tsbNuevo_Click(object sender, EventArgs e) { CursosDesktop FormCurso = new CursosDesktop(Abm.ModoForm.Alta); FormCurso.ShowDialog(); this.Listar(); }
private void btnNuevo_Click(object sender, EventArgs e) { CursosDesktop cd = new CursosDesktop(ApplicationForm.ModoForm.Alta); cd.ShowDialog(); Listar(); }
private void tsbEditar_Click(object sender, EventArgs e) { int ID = Convert.ToInt32(((DataRowView)this.dgvCursos.SelectedRows[0].DataBoundItem)["id_curso"].ToString()); CursosDesktop form = new CursosDesktop(ID, ApplicationForm.ModoForm.Modificacion); form.ShowDialog(); this.Listar(); }
private void tsbEliminar_Click(object sender, EventArgs e) { int ID = ((Business.Entities.Curso) this.dgvCursos.SelectedRows[0].DataBoundItem).ID; CursosDesktop FormCurso = new CursosDesktop(ID, Abm.ModoForm.Baja); FormCurso.ShowDialog(); this.Listar(); }
private void tsbEditar_Click(object sender, EventArgs e) { int ID = ((Business.Entities.Curso) this.dgvCursos.SelectedRows[0].DataBoundItem).ID; CursosDesktop cursosDesktop = new CursosDesktop(ApplicationForm.ModoForm.Modificacion, ID); cursosDesktop.ShowDialog(); this.Listar(); }
private void btnEditar_Click(object sender, EventArgs e) { if (dgvCursos.SelectedRows != null && dgvCursos.MultiSelect == false && dgvCursos.SelectionMode == DataGridViewSelectionMode.FullRowSelect) { int ID = ((Curso)dgvCursos.SelectedRows[0].DataBoundItem).ID; CursosDesktop pd = new CursosDesktop(ID, ApplicationForm.ModoForm.Modificacion); pd.ShowDialog(); Listar(); } }
private void tsbEliminar_Click(object sender, EventArgs e) { var rta = MessageBox.Show("¿Desea Eliminar el Curso?", "Advertencia", MessageBoxButtons.YesNo); if (rta == DialogResult.Yes) { int ID = Convert.ToInt32(((DataRowView)this.dgvCursos.SelectedRows[0].DataBoundItem)["id_curso"].ToString()); CursosDesktop form = new CursosDesktop(ID, ApplicationForm.ModoForm.Baja); form.ShowDialog(); this.Listar(); } }
private void BotonBorrar_Click(object sender, EventArgs e) { if (this.DataGridViewCursos.SelectedRows is null) { } else { int id = ((Curso)this.DataGridViewCursos.SelectedRows[0].DataBoundItem).ID; CursosDesktop cursosDesktop = new CursosDesktop(id, ApplicationForm.ModoForm.Baja); cursosDesktop.ShowDialog(); } Listar(); }