public object Clone()
        {
            OpticalProbeConfig device = new OpticalProbeConfig(this);

            return(device);
        }
 private OpticalProbeConfig(OpticalProbeConfig config)
 {
     this.SN         = string.IsNullOrEmpty(config.SN) ? string.Empty : config.SN;
     this.ConfigInfo = config.ConfigInfo == null ? null : config.ConfigInfo.Select(item => (UseablePeripheral)item.Clone()).ToList();
 }
 private OpticalProbeConfig(OpticalProbeConfig config)
 {
     this.SN = string.IsNullOrEmpty(config.SN) ? string.Empty : config.SN;
     this.ConfigInfo = config.ConfigInfo == null ? null : config.ConfigInfo.Select(item => (UseablePeripheral)item.Clone()).ToList();
 }
 public object Clone()
 {
     OpticalProbeConfig device = new OpticalProbeConfig(this);
     return device;
 }
 public bool OnCmdSaveConfig()
 {
     OpticalProbeConfig optical = new OpticalProbeConfig();
     optical.SN = _sn;
     optical.ConfigInfo=new List<UseablePeripheral>();
     foreach (CheckUseablePeripheral checkusea in _checkUseable)
     {
         if (checkusea.IsChecked)
         {
             optical.ConfigInfo.Add(checkusea.UseablePer);
         }
     }
     return MonitorAllConfig.Instance().SaveOpticalProbeInfoCofig(_sn, optical);
 }