private void LoadNewton(XmlDocument xmlDoc, NewtonConfigData configData) { XmlOldNewton xmlNewton = new XmlOldNewton(); xmlNewton.LoadConfig(xmlDoc); configData.Enabled = xmlNewton.Enabled; configData.NewtonFile = xmlNewton.NewtonFile; configData.WmxmlOutputDir = xmlNewton.NewtonMapDir; configData.StatusFile = xmlNewton.StatusFile; configData.Timeout = xmlNewton.Timeout; }
private void SaveNewton(XmlDocument xmlDoc, NewtonConfigData configData) { XmlOldNewton xmlNewton = new XmlOldNewton(); xmlNewton.Enabled = configData.Enabled; xmlNewton.NewtonFile = configData.NewtonFile; xmlNewton.NewtonMapDir = configData.WmxmlOutputDir; xmlNewton.StatusFile = configData.StatusFile; xmlNewton.Timeout = configData.Timeout; xmlNewton.SaveConfig(xmlDoc); }