예제 #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            //addingEditingLoadXMLFile = true;
            addingEditingLoadJSONFile = true;

            var form = new AddEditHotkeyForm();

            form.ShowDialog();

            addingEditingLoadJSONFile = false;
            //addingEditingLoadXMLFile = false;
        }
예제 #2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            if (lvKeysLocs.SelectedIndices.Count > 0)
            {
                //addingEditingLoadXMLFile = true;
                addingEditingLoadJSONFile = true;

                var form = new AddEditHotkeyForm();

                form.editIndex     = lvKeysLocs.SelectedIndices[0];
                form.editSoundKeys = new string[] { lvKeysLocs.SelectedItems[0].Text, lvKeysLocs.SelectedItems[0].SubItems[1].Text };

                form.ShowDialog();

                addingEditingLoadJSONFile = false;
                //addingEditingLoadXMLFile = false;
            }
        }