public void OpenLists()
 {
     using (Stream fs = new FileStream(filename, FileMode.Open))
     {
         System.Xml.Serialization.XmlSerializer x = new System.Xml.Serialization.XmlSerializer(AllSetData.GetType());
         AllSetData = (AllDataSets)x.Deserialize(fs);
     }
     AllSetData.EvaluateMaxIDs();
     AllSetData.SetDataReference();
 }
 public void SaveLists()
 {
     using (FileStream fs = new FileStream(filename, FileMode.Create))
     {
         System.Xml.Serialization.XmlSerializer x = new System.Xml.Serialization.XmlSerializer(AllSetData.GetType());
         x.Serialize(fs, AllSetData);
     }
 }
 //Methods
 public void ClearLists()
 {
     AllSetData.ClearList();
 }