Exemplo n.º 1
0
        /// <summary>
        /// 移除设备
        /// </summary>
        /// <param name="device">设备</param>
        public static void RemoveDevice(DeviceBase device)
        {
            DeviceBase deviceBase = DeviceBases.First(m => m.Name == device.Name);

            DeviceBases.Remove(device);
        }
Exemplo n.º 2
0
 /// <summary>
 /// 添加设备
 /// </summary>
 /// <param name="device">设备</param>
 public static void AddDevice(DeviceBase device)
 {
     DeviceBases.Add(device);
 }