Esempio n. 1
0
 public bool Add(DeviceName device)
 {
     if (DeviceNames.Any(x => x.Name == device.Name))
     {
         DeviceName currDevice = DeviceNames.First(x => x.Name == device.Name);
         return(currDevice.Add(device.GetFirstDevice()));
     }
     else
     {
         DeviceNames.Add(device);
     }
     return(true);
 }