public static void SetQuickRefFontFamily(String value) { try { ThreadHelper.ThrowIfNotOnUIThread(); SettingsStore.CreateCollection(CollectionName); SettingsStore.SetString(CollectionName, QuickRefFontFamilyPropertyName, value); } catch (ArgumentException) { } }
public static void SetQuickRefFontSize(Int32 value) { try { ThreadHelper.ThrowIfNotOnUIThread(); SettingsStore.CreateCollection(CollectionName); SettingsStore.SetInt32(CollectionName, QuickRefFontSizePropertyName, value); } catch (ArgumentException) { } }
private void SetSettings(string container, string vsdbg) { const string collectionPath = nameof(AttachToDockerContainerDialog); ThreadHelper.ThrowIfNotOnUIThread(); SettingsStore.CollectionExists(collectionPath, out int exists); if (exists != 1) { SettingsStore.CreateCollection(collectionPath); } SettingsStore.SetString(collectionPath, "container", container); SettingsStore.SetString(collectionPath, "vsdbg", vsdbg); }
public void WriteInt32(string name, int value) { if (_serviceProvider == null) { return; } int exists; SettingsStore.CollectionExists(SettingsRoot, out exists); if (exists != 1) { SettingsStore.CreateCollection(SettingsRoot); } SettingsStore.SetInt(SettingsRoot, name, value); }