public bool DynamicInfoChanged(string s) { bool res = false; DeviceConfigurationInfo d = new DeviceConfigurationInfo(new List <string>(), new List <int>()); d.Parse(s); if (this.lastValidComPorts == null) { if (d.lastValidComPorts != null) { res = true; } } else if (d.lastValidComPorts == null) { res = false; } else if (this.lastValidComPorts.Count != d.lastValidComPorts.Count) { res = true; } else { for (int i = 0; i < this.lastValidComPorts.Count; i++) { if (!this.lastValidComPorts[i].Equals(d.lastValidComPorts[i])) { res = true; break; } } } return(res); }
public void Copy(DeviceConfigurationInfo c) { this.HoursAdjustment = c.HoursAdjustment; this.ImportOnlyNew = c.ImportOnlyNew; this.DetectPauses = c.DetectPauses; }