コード例 #1
0
 /// <summary>
 /// Merges in the new device to this one.
 /// </summary>
 /// <param name="device"></param>
 public void Merge(BasicDevice device)
 {
     this.states         = device.states;
     this.AutomationData = device.AutomationData;
     this.Name           = device.Name;
     this.Address        = device.Address;
 }
コード例 #2
0
 public void AddOrUpdateDevice(FroggyPlugin.Data.BasicDevice device)
 {
     data.Devices[device.Address] = device;
     WriteFile();
 }