Ejemplo n.º 1
0
        private PresetToHotkeyMap()
        {
            Dictionary <string, VirtualHotkey> dictionary = PresetToHotkeyMapPersistence.LoadPresetToHotkeysMap();

            mPresetToHotkeyDictionary = dictionary != null ? new Dictionary <string, VirtualHotkey>(dictionary) : new Dictionary <string, VirtualHotkey>();

            DisplayPresetCollection.GetDisplayPresetCollection().DisplayPresetCollectionChanged += OnDisplayPresetCollectionChanged;
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Persists the current mapping to disk.
 /// </summary>
 private void SaveMapping()
 {
     PresetToHotkeyMapPersistence.SavePresetToHotkeysMap(mPresetToHotkeyDictionary);
 }