private void ProcessSendCurrentBindings(byte[] data)
 {
     List <Keys>[] keys = FromByteArray <List <Keys>[]>(data);
     foreach (List <Keys> key in keys)
     {
         Log(key.ToString());
     }
     CommunicationWrapper.SetBindings(keys);
 }
示例#2
0
        private void ProcessSendCurrentBindings(byte[] data)
        {
            Dictionary <int, List <int> >        nativeBindings = FromByteArray <Dictionary <int, List <int> > >(data);
            Dictionary <HotkeyIDs, List <Keys> > bindings       = nativeBindings.ToDictionary(pair => (HotkeyIDs)pair.Key, pair => pair.Value.Cast <Keys>().ToList());

            foreach (var pair in bindings)
            {
                Log(pair.ToString());
            }
            CommunicationWrapper.SetBindings(bindings);
        }