예제 #1
0
 private void Bar_OnRelease(object sender, OnReleaseArgs e)
 {
     //DebugUtil.Log(() => "Slider released: " + selected);
     //if (Parameter == null || e.Value < Parameter.Min || e.Value > Parameter.Max) { return; }
     SliderOperated?.Invoke(this, new ProgramShiftChangedEventArgs()
     {
         OperatedStep = e.Value
     });
 }
예제 #2
0
        private void Slider_ValueFixed(object sender, TickableSliderValueChangedArgs e)
        {
            var selected = e.NewValue;

            if (Parameter == null || selected < 0 || selected >= Parameter.Candidates.Count)
            {
                return;
            }
            SliderOperated?.Invoke(this, new ShootingParameterChangedEventArgs()
            {
                Selected = Parameter.Candidates[selected]
            });
        }
예제 #3
0
        private void Slider_ValueFixed(object sender, TickableSliderValueChangedArgs e)
        {
            var selected = e.NewValue;

            //DebugUtil.Log(() => "Slider released: " + selected);
            if (Parameter == null || selected < Parameter.Candidate.MinIndex || selected > Parameter.Candidate.MaxIndex)
            {
                return;
            }
            SliderOperated?.Invoke(this, new EvChangedEventArgs()
            {
                Selected = selected
            });
        }