private void SaveConfig(XmlDocument xmlDoc, ConfigConfigData configData) { XmlConfig xmlConfig = new XmlConfig(); xmlConfig.MapperId = configData.MapperId; xmlConfig.TesterId = configData.TesterId; xmlConfig.ProberId = configData.ProberId; xmlConfig.NewConfigEnabled = configData.NewConfigEnabled; xmlConfig.WsConfigEnabled = configData.WsEnabled; xmlConfig.WsTimeoutSeconds = configData.WsTimeoutSeconds; xmlConfig.WsOnlineCheckTimeoutSeconds = configData.WsOnlineCheckTimeoutSeconds; xmlConfig.WsAddressList = new List<string>(configData.WsAddressList); xmlConfig.SaveConfig(xmlDoc); }
private bool LoadConfig(XmlDocument xmlDoc, ConfigConfigData configData) { XmlConfig xmlConfig = new XmlConfig(); bool isReadAll = xmlConfig.LoadConfig(xmlDoc); configData.MapperId = xmlConfig.MapperId; configData.TesterId = xmlConfig.TesterId; configData.ProberId = xmlConfig.ProberId; configData.NewConfigEnabled = xmlConfig.NewConfigEnabled; configData.WsEnabled = xmlConfig.WsConfigEnabled; configData.WsTimeoutSeconds = xmlConfig.WsTimeoutSeconds; configData.ClearWsAddressList(); configData.AddRangeToWsAddressList(xmlConfig.WsAddressList); configData.ShakeWsAddressList(); configData.WsOnlineCheckTimeoutSeconds = xmlConfig.WsOnlineCheckTimeoutSeconds; return isReadAll; }