Esempio n. 1
0
        public OBSettings()
        {
            vm          = SP.GetService <ViewModelsService>().OBSettings;
            DataContext = vm;

            InitializeComponent();

            configSectionOnLoadCombobox.ItemsSource = Enum.GetValues(typeof(ConfigSection)).Cast <ConfigSection>();
        }
Esempio n. 2
0
 public static void SaveSettings(string settingsFile, OBSettingsViewModel settings)
 {
     File.WriteAllText(settingsFile, JsonConvert.SerializeObject(settings, Formatting.Indented));
 }