void HighRangeIndicatorLeave(object sender, IndicatorLeaveEventArgs e) { ArcScaleRange range = sender as ArcScaleRange; if (range != null) { pressure = e.NewValue < range.StartValueAbsolute ? PressureState.Normal : PressureState.Undefined; UpdateWeatherState(); } }
private IRange CreateRange(Color contentColor, int startValue, int endValue) { IRange result = new ArcScaleRange(); result.AppearanceRange.ContentBrush = new SolidBrushObject(contentColor); result.StartValue = startValue; result.EndValue = endValue; result.StartThickness = 0f; result.EndThickness = 50f; return(result); }