public OBSettings() { vm = SP.GetService <ViewModelsService>().OBSettings; DataContext = vm; InitializeComponent(); configSectionOnLoadCombobox.ItemsSource = Enum.GetValues(typeof(ConfigSection)).Cast <ConfigSection>(); }
public static void SaveSettings(string settingsFile, OBSettingsViewModel settings) { File.WriteAllText(settingsFile, JsonConvert.SerializeObject(settings, Formatting.Indented)); }