Esempio n. 1
0
        }//end Clone

        public override string ToString()
        {
            String sHotKey = "";

            if (KeyData.HasFlag(Keys.Control))
            {
                sHotKey += "Ctrl";
            }

            if (KeyData.HasFlag(Keys.Shift))
            {
                if (sHotKey.Length != 0)
                {
                    sHotKey += " + ";
                }
                sHotKey += "Shift";
            }//end if

            if (KeyData.HasFlag(Keys.Alt))
            {
                if (sHotKey.Length != 0)
                {
                    sHotKey += " + ";
                }
                sHotKey += "Alt";
            }//end if

            if (KeyData.HasFlag(Keys.LWin))
            {
                if (sHotKey.Length != 0)
                {
                    sHotKey += " + ";
                }
                sHotKey += "Win";
            }//end if

            if (sHotKey.Length != 0)
            {
                sHotKey += " + ";
            }

            sHotKey += KeyData.ToString().Substring(0, 1);

            return(sHotKey);
        }//end ToString