public static void SaveToStorage(VSDropSettings settings) { var settingsManager = new ShellSettingsManager(ServiceProvider.GlobalProvider); var userSettingsStore = settingsManager.GetWritableSettingsStore(SettingsScope.UserSettings); if (!userSettingsStore.CollectionExists(collectionName)) userSettingsStore.CreateCollection(collectionName); if (settings == null) settings = new VSDropSettings(); var s = settings; userSettingsStore.SetString( collectionName, nameof(VSDropSettings), s.ToXml() ); }
public override void LoadSettingsFromStorage() { base.LoadSettingsFromStorage(); _settings = SettingsHelper.LoadSettingsFromStorage(); }
public VSDropAssistOptionsPage() { _settings = Application.Settings; }