public void Save(CameraPreset preset) { if (preset == null) { return; } try { if (!Directory.Exists(PresetFolder)) { Directory.CreateDirectory(PresetFolder); } preset.Save(preset.FileName); } catch (Exception exception) { Log.Error("Unable to save preset " + preset.Name, exception); } }
public void Save(CameraPreset preset) { if (preset == null) { return; } try { if (!Directory.Exists(PresetFolder)) { Directory.CreateDirectory(PresetFolder); } string filename = Path.Combine(PresetFolder, preset.Name + ".xml"); preset.Save(filename); } catch (Exception exception) { Log.Error("Unable to save preset " + preset.Name, exception); } }
public void Save(CameraPreset preset) { if (preset == null) return; try { if (!Directory.Exists(PresetFolder)) Directory.CreateDirectory(PresetFolder); string filename = Path.Combine(PresetFolder, preset.Name + ".xml"); preset.Save(filename); } catch (Exception exception) { Log.Error("Unable to save preset " + preset.Name, exception); } }
public void Save(CameraPreset preset) { if (preset == null) return; try { if (!Directory.Exists(PresetFolder)) Directory.CreateDirectory(PresetFolder); preset.Save(preset.FileName); } catch (Exception exception) { Log.Error("Unable to save preset " + preset.Name, exception); } }