PurplePen.EventDB.Save C# (CSharp) Method

Save() public method

Save the entire state of the event DB to a file.
public Save ( string filename ) : void
filename string
return void
        public void Save(string filename)
        {
            using (XmlTextWriter xmloutput = new XmlTextWriter(filename, Encoding.UTF8)) {
                xmloutput.Formatting = Formatting.Indented;
                xmloutput.Namespaces = false;

                xmloutput.WriteStartElement(rootElement);

                eventStore.Save(xmloutput);
                controlPointStore.Save(xmloutput);
                courseStore.Save(xmloutput);
                courseControlStore.Save(xmloutput);
                legStore.Save(xmloutput);
                specialStore.Save(xmloutput);

                xmloutput.WriteEndElement();
            }
        }