public static IPSConfig SaveConfig( this IPSConfig src, string dirpaht, string name) { XmlTool.WriteXmlClass(src, dirpaht, name); return(src); }
public static IPSConfig ToConfig( this IPSDefualtSetting src) { var res = new IPSConfig(); res.BaseDirPath = src.BaseDirPath; res.StartupConfigName = src.StartupConfigName; res.Port = src.Port; res.Boxcar = src.Boxcar; res.Scan2Avg = src.Scan2Avg; res.IntegrationTime = src.IntegrationTime; res.XStgSpeed = src.XStgSpeed; res.RStgSpeed = src.RStgSpeed; res.EdgeEnd = src.EndgeEnd; return(res); }