public void LoadOrCreateSettings() { settings = SaveLoadLogic.LoadSettings(); if (settings == null) { settings = new ContentPipelinePlugin.SettingsSave(); } }
private void HandleViewModelPropertyChanged(object sender, PropertyChangedEventArgs e) { var parameterName = e.PropertyName; switch (parameterName) { case nameof(ControlViewModel.UseContentPipelineOnPngs): settings.UseContentPipelineOnAllPngs = viewModel.UseContentPipelineOnPngs; SaveLoadLogic.SaveSettings(settings); RefreshProjects(); break; } }