//-----------------------BOTONES ABM--------------------------------// public void Btn_agregar_Click(object sender, EventArgs e) { FrmABMFecha frmABMFecha = new FrmABMFecha(); AddOwnedForm(frmABMFecha); frmABMFecha.ShowDialog(); }
public void Btn_editar_Click(object sender, EventArgs e) { if (dgw_fecha.CurrentRow != null) { FrmABMFecha frmABMFecha = new FrmABMFecha(); AddOwnedForm(frmABMFecha); service.selected = Int32.Parse(dgw_fecha.CurrentRow.Cells["id_col"].Value.ToString()); frmABMFecha.DeterminarOperacion(FrmABMFecha.FormMode.update, service); frmABMFecha.ShowDialog(); } else { MessageBox.Show("Primero debe seleccionar un registro!", "Aviso", MessageBoxButtons.OK, MessageBoxIcon.Information); } }