private void OnSliderPositionChanged(TouchL12 sender, SliderPositionChangedEventArgs e) { if (this.onSliderPositionChanged == null) { this.onSliderPositionChanged = this.OnSliderPositionChanged; } if (Program.CheckAndInvoke(this.SliderPositionChanged, this.onSliderPositionChanged, sender, e)) { this.SliderPositionChanged(sender, e); } }
private void OnSliderPositionEvent(TouchL12 sender, double position, Direction direction) { if (this.OnSliderPosition == null) { this.OnSliderPosition = new SliderPositionChangedHandler(this.OnSliderPositionEvent); } if (Program.CheckAndInvoke(this.OnSliderPositionChanged, this.OnSliderPosition, sender, position, direction)) { this.OnSliderPositionChanged(sender, position, direction); } }
private void OnSliderTouched(TouchL12 sender, SliderTouchedEventArgs e) { if (this.onSliderTouched == null) { this.onSliderTouched = this.OnSliderTouched; } if (Program.CheckAndInvoke(e.State ? this.SliderPressed : this.SliderReleased, this.onSliderTouched, sender, e)) { if (e.State) { this.SliderPressed(sender, e); } else { this.SliderReleased(sender, e); } } }
private void OnSliderEvent(TouchL12 sender, bool state) { if (this.OnSlider == null) { this.OnSlider = new SliderTouchHandler(this.OnSliderEvent); } if (Program.CheckAndInvoke(state ? this.OnSliderPressed : this.OnSliderReleased, this.OnSlider, sender, state)) { if (state) { this.OnSliderPressed(sender, state); } else { this.OnSliderReleased(sender, state); } } }