示例#1
0
 public void Update(Smarthome device)
 {
     _devices[device.Key] = device;
 }
示例#2
0
 public void Add(Smarthome device)
 {
     device.Key           = Guid.NewGuid().ToString();
     _devices[device.Key] = device;
 }