Ejemplo n.º 1
0
 public void LoadOptions()
 {
     LoggerUtils.Log("Starting settings load");
     if (File.Exists(FILE_NAME))
     {
         XmlSerializer  xmlSerialiser  = new XmlSerializer(typeof(OptionsManager));
         StreamReader   reader         = new StreamReader(FILE_NAME);
         OptionsManager optionsManager = xmlSerialiser.Deserialize(reader) as OptionsManager;
         reader.Close();
         LoggerUtils.Log(optionsManager.mMaxVelocity.ToString());
         if (optionsManager != null)
         {
             mInstance = optionsManager;
         }
         LoggerUtils.Log("Settings read");
     }
 }