internal void DeleteSettings() { // crash if this system has a settings manager that does not support this interface ISettingsManager2 settings = (ISettingsManager2)ConfigManager.SettingsManager; settings.DeleteSetting(SETTINGS_GROUP, Path); }
public Preferences(ISettingsManager2 preferences) { _preferences = preferences; _profileAutoStart = LoadSetting("ProfileAutoStart", true); _startMinimized = LoadSetting("StartMinimized", false); _autoHide = LoadSetting("AutoHide", false); _preflightCheck = LoadSetting("PreflightCheck", true); _suppressMouseAfterTouchDuration = LoadSetting("SuppressMouseAfterTouchDuration", 0); _hotKey = LoadSetting("HotKey", Key.None.ToString()); _hotKeyModifiers = LoadSetting("HotKeyModifiers", ModifierKeys.None.ToString()); _splashScreen = LoadSetting("SplashScreen", true); _highQualityBitmapScaling = LoadSetting("HighQualityBitmapScaling", false); // NOTE: do not try to implement auto start in registry even if enabled, we may not have rights _autoStart = LoadSetting("AutoStart", false); }