Exemplo n.º 1
0
        public MappableDevice Create(string id, string name, List <MappableSource> sources)
        {
            var device = new MappableDevice(id, name, sources);

            lock (sync)
            {
                devices.Add(device);
            }
            return(device);
        }
Exemplo n.º 2
0
 public bool Remove(MappableDevice device)
 {
     return(devices.Remove(device));
 }