示例#1
0
        public string GetKeyString()
        {
            var toReturn =
                from k in Keys
                select KeyTranslater.GetKeyString(k);

            return(String.Join(", ", toReturn));
        }
        public JObject SaveToJson()
        {
            JObject toReturn = new JObject();

            toReturn["trigger key"]  = KeyTranslater.GetKeyString((VirtualKeyCode)triggerKey);
            toReturn["command word"] = commandWord;
            toReturn["command type"] = GetCommandType().ToString();
            return(toReturn);
        }