示例#1
0
        private string GetDeviceType(LiveDeviceType liveDeviceType)
        {
            var descriptionAttr = GetCustomAttribute <DescriptionAttribute>(liveDeviceType);

            return(descriptionAttr == null ? null : descriptionAttr.Description);
        }
示例#2
0
 private void OnLiveDeviceTypeChanged(LiveDeviceType oldValue, LiveDeviceType newValue)
 {
     base.DeviceType = GetDeviceType(this.LiveDeviceType);
 }