コード例 #1
0
        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);
        }
コード例 #2
0
 public void Copy(DeviceConfigurationInfo c)
 {
     this.HoursAdjustment = c.HoursAdjustment;
     this.ImportOnlyNew   = c.ImportOnlyNew;
     this.DetectPauses    = c.DetectPauses;
 }