コード例 #1
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            Keybind c = obj as Keybind;

            if (c == null)
            {
                return(false);
            }
            if (this.FirstKey == c.FirstKey && this.SecondKey == c.SecondKey)
            {
                return(true);
            }
            return(false);
        }
コード例 #2
0
 public Control()
 {
     this.keybind = new Keybind();
     this.command = new Command();
     this.Comment = "";
 }