Пример #1
0
        private string getString(ShortcutKeyType types)
        {
            MyShortcutKey myShortcutKey = Program.MyShortcutKeys[(int)(byte)types];

            if (myShortcutKey == null)
            {
                return("");
            }
            return(myShortcutKey.ToString());
        }
        public override bool Equals(object obj)
        {
            if (!(obj is MyShortcutKey))
            {
                return(false);
            }
            MyShortcutKey myShortcutKey = (MyShortcutKey)obj;

            return(myShortcutKey.isAlt == this.isAlt && myShortcutKey.isCtrl == this.isCtrl && (myShortcutKey.isShift == this.isShift && myShortcutKey.keyCode == this.keyCode));
        }