private PresetToHotkeyMap() { Dictionary <string, VirtualHotkey> dictionary = PresetToHotkeyMapPersistence.LoadPresetToHotkeysMap(); mPresetToHotkeyDictionary = dictionary != null ? new Dictionary <string, VirtualHotkey>(dictionary) : new Dictionary <string, VirtualHotkey>(); DisplayPresetCollection.GetDisplayPresetCollection().DisplayPresetCollectionChanged += OnDisplayPresetCollectionChanged; }
/// <summary> /// Persists the current mapping to disk. /// </summary> private void SaveMapping() { PresetToHotkeyMapPersistence.SavePresetToHotkeysMap(mPresetToHotkeyDictionary); }