/// <summary>
        /// On the "JSON" button click, this method opens a JSON editor that allows the user to modify JSON data in the action variable.
        /// </summary>
        private void jsonEditButton_Click(object sender, EventArgs e)
        {
            string json = JsonConvert.SerializeObject(action, ConfigManager.JsonSettings);

            je          = new JsonEditor();
            je.Closing += (o, args) =>
            {
                action = JsonConvert.DeserializeObject(je.GetEditorText(), ConfigManager.JsonSettings);
                BindActionToUi();
                SetEnableModifications(true);
            };

            SetEnableModifications(false);
            je.SetEditorText(json);
            je.Show();
        }