Beispiel #1
0
        public void Load()
        {
            FileStream fs = new FileStream(SETTINGS_FILE, FileMode.OpenOrCreate, FileAccess.Read);

            if (fs.Length > 0)
            {
                XmlSerializer serializer = new XmlSerializer(typeof(OptionList));
                List = (OptionList)serializer.Deserialize(fs);
            }

            fs.Close();
        }
Beispiel #2
0
 public void Reset()
 {
     List = Downfaulted;
 }