示例#1
0
 private void UpdateColor(object sender, PropertyChangedEventArgs args)
 {
     Dispatcher.Invoke(
         () =>
     {
         if (_circle != null)
         {
             _circle.Fill          = ChannelColors.GetChannelColor((IChannel)sender);
             _circleInnerText.Text = ChannelColors.GetChannelStatusText((IChannel)sender);
         }
     });
 }