private void presetSelectorControl_ActivePresetChanged(object sender, PresetSelectorEventArgs e) { foreach (var slider in _sliderControls) { slider.Enabled = e.Preset == null || !e.Preset.Properties.ContainsKey(slider.Property.Id); } }
private void presetSelectorControl_SelectedPresetChanged(object sender, PresetSelectorEventArgs e) { if (e.Preset != null) { foreach (var slider in _sliderControls) { slider.PresetEnabled = e.Preset.Properties.ContainsKey(slider.Property.Id); } } }
private void presetSelectorControl_ApplyPreset(object sender, PresetSelectorEventArgs e) { e.Preset.Apply(Camera); Camera.Save(); }