protected override void btnModificar_Click(object sender, EventArgs e) { if (this.dgvDatos.CurrentRow == null) return; DetalleModelo m = new DetalleModelo(Util.Entero(this.dgvDatos.CurrentRow.Cells["ModeloID"].Value)); m.ShowDialog(); }
protected override void btnModificar_Click(object sender, EventArgs e) { if (this.dgvDatos.CurrentRow == null) { return; } DetalleModelo m = new DetalleModelo(Util.Entero(this.dgvDatos.CurrentRow.Cells["ModeloID"].Value)); m.ShowDialog(); }
protected override void btnAgregar_Click(object sender, EventArgs e) { DetalleModelo m = new DetalleModelo(); m.ShowDialog(); }