private void btn_Add_Click(object sender, EventArgs e) { using (frm_ActionEditor dialog = new frm_ActionEditor()) { dialog.ShowDialog(); UpdateControls(); UpdateDataGridView(); Global.RegisterActionHotkeys(); } }
private void btn_Edit_Click(object sender, EventArgs e) { if (this.selectedPasteAction != null) { using (frm_ActionEditor dialog = new frm_ActionEditor(selectedPasteAction)) { dialog.ShowDialog(); if (dialog.DialogResult == DialogResult.OK) { Global.RegisterActionHotkeys(); } } } UpdateControls(); UpdateDataGridView(); }