예제 #1
0
 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);
     }
 }
예제 #2
0
 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);
         }
     }
 }
예제 #3
0
 private void presetSelectorControl_ApplyPreset(object sender, PresetSelectorEventArgs e)
 {
     e.Preset.Apply(Camera);
     Camera.Save();
 }