private string GetDeviceType(LiveDeviceType liveDeviceType) { var descriptionAttr = GetCustomAttribute <DescriptionAttribute>(liveDeviceType); return(descriptionAttr == null ? null : descriptionAttr.Description); }
private void OnLiveDeviceTypeChanged(LiveDeviceType oldValue, LiveDeviceType newValue) { base.DeviceType = GetDeviceType(this.LiveDeviceType); }