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

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