private void btnAdd_Click(object sender, EventArgs e) { frm_crud = new C_accion_crud(); using (frm_accion_crud crud_accion = frm_crud.formulario()) { desenfoque_abrir_formulario(); crud_accion.btnAcept.Click += new EventHandler(read_modulo); crud_accion.ShowDialog(); overlayForm.Dispose(); } }
private void btnUpdate_Click(object sender, EventArgs e) { desenfoque_abrir_formulario(); if (e_accion.Clave != 0) { e_accion.Operacion = "update"; frm_crud = new C_accion_crud(e_accion); using (frm_accion_crud crud_accion = frm_crud.formulario()) { crud_accion.btnAcept.Click += new EventHandler(read_modulo); crud_accion.ShowDialog(); } } else { c_message.message("Selecciona un registro.", C_message.message_type.warning); } overlayForm.Dispose(); }