Ejemplo n.º 1
0
        public string GetKeyString()
        {
            var toReturn =
                from k in Keys
                select KeyTranslater.GetKeyString(k);

            return(String.Join(", ", toReturn));
        }
Ejemplo n.º 2
0
        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);
        }