示例#1
0
 /// <summary>
 /// 装饰设备ID
 /// </summary>
 private string DecorateDeviceID(uint deviceId)
 {
     if (NameResolver != null)
     {
         return(string.Format("{0} - {1}", deviceId, NameResolver.Convert(deviceId)));
     }
     else
     {
         return(deviceId.ToString());
     }
 }