Ejemplo n.º 1
0
 private void btn_Add_Click(object sender, EventArgs e)
 {
     using (frm_ActionEditor dialog = new frm_ActionEditor())
     {
         dialog.ShowDialog();
         UpdateControls();
         UpdateDataGridView();
         Global.RegisterActionHotkeys();
     }
 }
Ejemplo n.º 2
0
        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();
        }