private void btnEdit_Click(object sender, EventArgs e) { EditRomInfo editor = new EditRomInfo(cabecera, banner); editor.FormClosed += new FormClosedEventHandler(editor_FormClosed); editor.Show(); }
void editor_FormClosed(object sender, FormClosedEventArgs e) { EditRomInfo editor = (EditRomInfo)sender; if (editor.DialogResult != System.Windows.Forms.DialogResult.OK) { return; } cabecera = editor.Header; banner = editor.Banner; Mostrar_Informacion(cabecera, banner); }