private string EncodeKeyText(KeyPatternConfig config) { var str = new StringBuilder(); if (config.IsControl) { str.Append("Ctrl+"); } if (config.IsShift) { str.Append("Shift+"); } if (config.IsAlt) { str.Append("Alt+"); } str.Append(config.KeyCode.ToString()); return(str.ToString()); }
public KeyActionConfig(bool control, bool shift, bool alt, Keys key, EnumT id) { KeyPattern = new KeyPatternConfig(control, shift, alt, key); ActionID = id; }