private void tsbEditar_Click(object sender, EventArgs e) { int ID = ((Entidades.Modulo)this.dgvModulos.SelectedRows[0].DataBoundItem).IDModulo; ModuloDesktop ud = new ModuloDesktop(ApplicationForm.ModoForm.Modificacion, ID); ud.ShowDialog(); this.Listar(); }
private void tsbNuevo_Click(object sender, EventArgs e) { ModuloDesktop md = new ModuloDesktop(ApplicationForm.ModoForm.Alta); md.ShowDialog(); Listar(); }
private void tsbEliminar_Click(object sender, EventArgs e) { ModuloDesktop md = new ModuloDesktop(((Modulo)dgvModulos.SelectedRows[0].DataBoundItem).ID, ApplicationForm.ModoForm.Baja); md.ShowDialog(); Listar(); }
private void tsbNuevo_Click(object sender, EventArgs e) { ModuloDesktop md = new ModuloDesktop(ApplicationForm.ModoForm.Alta); md.ShowDialog(); this.Listar(); }
private void tsbNuevo_Click(object sender, EventArgs e) { ModuloDesktop formModulo = new ModuloDesktop(ApplicationForm.ModoForm.Alta, _context); formModulo.ShowDialog(); this.Listar(); }
private void tsbNuevo_Click(object sender, EventArgs e) { ModuloDesktop md = new ModuloDesktop(FormPrincipal.ModoForm.Alta); md.ShowDialog(); this.Listar(); }
private void tsbEditar_Click(object sender, EventArgs e) { int ID = ((Business.Entities.Modulo) this.dgvModulos.SelectedRows[0].DataBoundItem).ID; ModuloDesktop formModulo = new ModuloDesktop(ID, ApplicationForm.ModoForm.Modificacion); formModulo.ShowDialog(); this.Listar(); }
private void tsbNuevo_Click(object sender, EventArgs e) { ModuloDesktop MD = new ModuloDesktop(AplicationForm.ModoForm.Alta); MD.ShowDialog(); this.Listar(); }
private void tsbEliminar_Click(object sender, EventArgs e) { if (this.dgvModulos.SelectedRows.Count == 1) { int ID = ((Business.Entities.Modulo) this.dgvModulos.SelectedRows[0].DataBoundItem).Id; ModuloDesktop formModulo = new ModuloDesktop(ID, ApplicationForm.ModoForm.Baja); formModulo.ShowDialog(); } this.Listar(); }
private void tsbEliminar_Click(object sender, EventArgs e) { if (this.dgvModulos.SelectedRows.Count != 0) { int ID = ((Business.Entities.Modulo) this.dgvModulos.SelectedRows[0].DataBoundItem).ID; ModuloDesktop MD = new ModuloDesktop(ID, AplicationForm.ModoForm.Baja); MD.ShowDialog(); } }
private void tsbEliminar_Click(object sender, EventArgs e) { if (this.dgvModulos.SelectedRows.Count != 0) { int ID = ((Business.Entities.Modulo)this.dgvModulos.SelectedRows[0].DataBoundItem).ID; ModuloDesktop MD = new ModuloDesktop(ID, AplicationForm.ModoForm.Baja); MD.ShowDialog(); } }
private void tsbEliminar_Click(object sender, EventArgs e) { try { int ID = ((Business.Entities.Modulo) this.dgvModulos.SelectedRows[0].DataBoundItem).ID; ModuloDesktop md = new ModuloDesktop(ID, FormPrincipal.ModoForm.Baja); md.ShowDialog(); this.Listar(); } catch { } }
private void tsbEliminar_Click(object sender, EventArgs e) { if (this.dgvModulos.SelectedRows.Count != 0) { int ID = ((Business.Entities.Modulo) this.dgvModulos.SelectedRows[0].DataBoundItem).ID; UI.Desktop.ModuloDesktop formModulo = new ModuloDesktop(ID, ModuloDesktop.ModoForm.Baja); formModulo.ShowDialog(); this.Listar(); } else { MessageBox.Show("Debe seleccionar un módulo", "", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
private void tsbEliminar_Click(object sender, EventArgs e) { if (this.dgvModulos.SelectedRows.Count > 0) { int ID = ((Business.Entities.Modulo) this.dgvModulos.SelectedRows[0].DataBoundItem).ID; ModuloDesktop formModulo = new ModuloDesktop(ID, ApplicationForm.ModoForm.Baja, _context); formModulo.ShowDialog(); this.Listar(); } else { MessageBox.Show("Seleccionar una fila en la grilla para poder eliminar"); } }
private void tsbEditar_Click(object sender, EventArgs e) { try { int ID = ((Business.Entities.Modulo) this.dgvModulos.SelectedRows[0].DataBoundItem).ID; ModuloDesktop md = new ModuloDesktop(ID, FormPrincipal.ModoForm.Modificacion); md.ShowDialog(); this.Listar(); } catch (Exception Ex) { MessageBox.Show(Ex.Message); } }
private void tbsEliminar_Click(object sender, EventArgs e) { try { if (!(this.dgvModulos.SelectedRows == null)) { int ID = ((Business.Entities.Modulo) this.dgvModulos.SelectedRows[0].DataBoundItem).ID; ModuloDesktop formModulo = new ModuloDesktop(ID, ApplicationForm.ModoForm.Baja); formModulo.ShowDialog(); this.Listar(); } } catch (ArgumentOutOfRangeException ef) { MessageBox.Show("No existen registros a eliminar.", "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void altaModulo_Click(object sender, EventArgs e) { ModuloDesktop formModulo = new ModuloDesktop(ApplicationForm.ModoForm.Alta); formModulo.ShowDialog(); }
private void tsbAgregar_Click(object sender, EventArgs e) { UI.Desktop.ModuloDesktop formModulo = new ModuloDesktop(ModuloDesktop.ModoForm.Alta); formModulo.ShowDialog(); this.Listar(); }