private static void KinectStatusPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { DeviceStatusUserControl deviceStatusUserControl = (DeviceStatusUserControl)d; KinectStatus kinectStatus = (KinectStatus)e.NewValue; deviceStatusUserControl.UpdateKinectStatus(kinectStatus); }
private static void CarControllerStatusPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { DeviceStatusUserControl deviceStatusUserControl = (DeviceStatusUserControl)d; CarControllerStatus carControllerStatus = (CarControllerStatus)e.NewValue; deviceStatusUserControl.UpdateCarControllerStatus(carControllerStatus); }