示例#1
0
 private KeyBinding(string name, KeyChord chord, Command command)
 {
     KeyChord = chord;
     Action   = (e) => command.Execute(e);
     Name     = name;
     Enabled  = true;
     Command  = command;
 }
示例#2
0
        public override bool Equals(object obj)
        {
            KeyChord kc = obj as KeyChord;

            if (kc == null)
            {
                return(false);
            }
            return(kc.ToString().Equals(this.ToString()));
        }
示例#3
0
 public static KeyBinding Build(Plugin plugin, string name, KeyChord chord, Command command)
 {
     return(new KeyBinding(name, chord, command));
 }
示例#4
0
 public bool IsProperSubsetOf(KeyChord chord)
 {
     return(GetChordSets().Any((mine) => chord.GetChordSets().Any((theirs) => mine.IsProperSubsetOf(theirs))));
 }