private void RedRange_IndicatorLeave(object sender, IndicatorLeaveEventArgs e)
 {
     if (((e.NewValue) < 10) || (((e.NewValue) > 90)))
     {
         stateIndicator.Fill = new SolidColorBrush(Colors.Gray);
     }
 }
        void HighRangeIndicatorLeave(object sender, IndicatorLeaveEventArgs e)
        {
            ArcScaleRange range = sender as ArcScaleRange;

            if (range != null)
            {
                pressure = e.NewValue < range.StartValueAbsolute ? PressureState.Normal : PressureState.Undefined;
                UpdateWeatherState();
            }
        }
Exemplo n.º 3
0
        void NormalRangeIndicatorLeave(object sender, IndicatorLeaveEventArgs e)
        {
            LinearScaleRange range = sender as LinearScaleRange;

            if (range != null)
            {
                pressure = e.NewValue < range.StartValueAbsolute ? PressureState.Low : PressureState.High;
                UpdateWeatherState();
            }
        }
Exemplo n.º 4
0
        void LowRangeIndicatorLeave(object sender, IndicatorLeaveEventArgs e)
        {
            LinearScaleRange range = sender as LinearScaleRange;

            if (range != null && e.NewValue < range.StartValueAbsolute)
            {
                pressure = PressureState.Undefined;
                UpdateWeatherState();
            }
        }
 void HighTemperatureIndicatorLeave(object sender, IndicatorLeaveEventArgs e)
 {
     temperature = TemperatureState.Low;
     UpdateWeatherState();
 }
 private void GreenRange_IndicatorLeave(object sender, IndicatorLeaveEventArgs e)
 {
     stateIndicator.Fill = new SolidColorBrush(Colors.Gray);
 }