private void Btn_Agregar_Click(object sender, EventArgs e) { FrmMedicamentosABM FrmCABM = new FrmMedicamentosABM(); FrmCABM.ShowDialog(); Buscar(); }
private void Btn_Editar_Click(object sender, EventArgs e) { try { FrmMedicamentosABM FrmCABM = new FrmMedicamentosABM(DG_Datos.SelectedRows[0].Tag.ToString()); if (FrmCABM.ShowDialog() == System.Windows.Forms.DialogResult.OK) { Btn_Buscar.Enabled = false; Btn_Detener.Enabled = true; Buscar(); } } catch { MessageBox.Show("Debe seleccionar una fila de la grilla de datos.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Information); } }