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 }); }
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] }); }
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 }); }