void RangeSlider_RangeChanged(object sender, RangeChangedEventArgs e) { UIRangeSlider slider = (UIRangeSlider)sender; switch (slider.Name) { case "Magnitude:": Global.QueryConfiguration.LowerMagnitude = (int)e.LowerValue; Global.QueryConfiguration.UpperMagnitude = (int)e.UpperValue; break; case "Depth(KM):": Global.QueryConfiguration.LowerDepth = (int)e.LowerValue; Global.QueryConfiguration.UpperDepth = (int)e.UpperValue; break; case "Date(Year):": Global.QueryConfiguration.LowerYear = (int)e.LowerValue; Global.QueryConfiguration.UpperYear = (int)e.UpperValue; break; } lowerValue.Text = e.LowerValue.ToString("N0"); upperValue.Text = e.UpperValue.ToString("N0"); }
protected virtual void OnRangeChanged(RangeChangedEventArgs e) { if (RangeChanged != null) { RangeChanged(this, e); } }
private void OptionRangeSeekBar_RangeChanged(object sender, RangeChangedEventArgs e) { if (sender.Equals(dateRangeSeekBar)) { Global.QueryConfiguration.LowerYear = e.LowerValue; Global.QueryConfiguration.UpperYear = e.UpperValue; } else if (sender.Equals(magnitudeRangeSeekBar)) { Global.QueryConfiguration.LowerMagnitude = e.LowerValue; Global.QueryConfiguration.UpperMagnitude = e.UpperValue; } else if (sender.Equals(depthRangeSeekBar)) { Global.QueryConfiguration.LowerDepth = e.LowerValue; Global.QueryConfiguration.UpperDepth = e.UpperValue; } }