internal static void RemoveMemory(DeviceType objectValue)
 {
     if (DicDeviceType.ContainsKey(objectValue.Id))
     {
         DicDeviceType.Remove(objectValue.Id);
     }
 }
 public static bool IsExistDeviceType(int id)
 {
     if (DicDeviceType.ContainsKey(id))
     {
         return(true);
     }
     return(false);
 }
 public static DeviceType GetDeviceType(int id)
 {
     if (DicDeviceType.ContainsKey(id))
     {
         return(DicDeviceType[id].Clone() as DeviceType);
     }
     LogTo.Error("Not get DeviceType by id = " + id);
     return(null);
 }