private void SaveEvent(XmlDocument xmlDoc, EventConfigData configData) { XmlOldEvent xmlEvent = new XmlOldEvent(); xmlEvent.Enabled = configData.Enabled; xmlEvent.WriteVerificationCount = configData.WriteVerificationCount; xmlEvent.SendingCount = configData.SendingCount; xmlEvent.EventDir = configData.EventDir; xmlEvent.RejectedEventDir = configData.RejectedEventDir; xmlEvent.LongPauseEvents = new List<LongPauseEventListData>(configData.LpEventConfigData.LongPauseEventPropertyList); xmlEvent.SaveConfig(xmlDoc); }
private void LoadEvent(XmlDocument xmlDoc, EventConfigData configData) { XmlOldEvent xmlEvent = new XmlOldEvent(); xmlEvent.LoadConfig(xmlDoc); configData.Enabled = xmlEvent.Enabled; configData.WriteVerificationCount = xmlEvent.WriteVerificationCount; configData.SendingCount = xmlEvent.SendingCount; configData.EventDir = xmlEvent.EventDir; configData.RejectedEventDir = xmlEvent.RejectedEventDir; configData.LpEventConfigData.UpdateLongPauseEventList(xmlEvent.LongPauseEvents); }