private void RemovePresetAction(object parameter) { var preset = Image.Preset; Image.Preset = _presetService.DefaultPreset; _presetService.RemovePreset(preset); _presetService.SavePresets(); }
public PresetModel GetResult() { if (_saveRequested) { _preset.GetValues(Preset); if (IsNewPreset) { _presetService.AddPreset(_preset); } _presetService.SavePresets(); return(_preset); } return(null); }