private KeyBinding(string name, KeyChord chord, Command command) { KeyChord = chord; Action = (e) => command.Execute(e); Name = name; Enabled = true; Command = command; }
public override bool Equals(object obj) { KeyChord kc = obj as KeyChord; if (kc == null) { return(false); } return(kc.ToString().Equals(this.ToString())); }
public static KeyBinding Build(Plugin plugin, string name, KeyChord chord, Command command) { return(new KeyBinding(name, chord, command)); }
public bool IsProperSubsetOf(KeyChord chord) { return(GetChordSets().Any((mine) => chord.GetChordSets().Any((theirs) => mine.IsProperSubsetOf(theirs)))); }