Example #1
0
 /// <summary>
 /// Liest die Config.XML ein und deserialisert sie in unsere Config-Instanz
 /// </summary>
 private void ReadConfig()
 {
     //Wenn wir noch keine Config haben, machen wir eine leere und raus hier
     conf = ConfigTools.LoadConfig("config.xml");
     if (conf == null)
     {
         conf = new();
     }
     hasChanges = false;
 }
Example #2
0
 /// <summary>
 /// Schreibt die Config-Instanz als XML-File
 /// </summary>
 private void WriteConfig()
 {
     ConfigTools.SaveConfig(conf, "config.xml");
     hasChanges = false;
 }