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

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