Exemple #1
0
        public void LoadShortcutsFromFile(string file, RoutedMethodRegistry?methodList)
        {
            var list = KeyboardShortcutsIo.LoadFromFile(file, methodList);

            foreach (KeyboardShortcut item in list)
            {
                KeyRegistry.RegisterKeyShortcut(item);
            }
        }
Exemple #2
0
 public async Task WriteShortcutsToFileAsync(string file)
 {
     await KeyboardShortcutsIo.WriteToFile(KeyRegistry, file);
 }