示例#1
0
 public void ApplyConfig()
 {
     EnabledCheckbox.Checked               = plugin.Config.Enabled;
     autoSplitHotkeyControl.ForeColor      = plugin.Config.Hotkey.ToKeys() == Keys.None ? Color.Red : Color.Black;
     autoSplitHotkeyControl.Value          = plugin.Config.Hotkey;
     autoSplitResetHotkeyControl.ForeColor = plugin.Config.ResetHotkey.ToKeys() == Keys.None ? Color.Red : Color.Black;
     autoSplitResetHotkeyControl.Value     = plugin.Config.ResetHotkey;
     autoSplitTable.Set(plugin.Config);
 }
示例#2
0
        public void ApplyConfig()
        {
            if (control.InvokeRequired)
            {
                control.Invoke((Action)(() => ApplyConfig()));
                return;
            }

            EnabledCheckbox.Checked = plugin.Config.Enabled;
            EnabledForExistingCharsCheckbox.Checked = plugin.Config.EnabledForExistingChars;
            SplitKeyControl.ForeColor = plugin.Config.Hotkey.ToKeys() == Keys.None ? Color.Red : Color.Black;
            SplitKeyControl.Value     = plugin.Config.Hotkey;
            ResetKeyControl.ForeColor = plugin.Config.ResetHotkey.ToKeys() == Keys.None ? Color.Red : Color.Black;
            ResetKeyControl.Value     = plugin.Config.ResetHotkey;
            autoSplitTable.Set(plugin.Config);
        }