public void getEinstellungen() { // ToDo: Einstellungen aus XML-Datei holen if (checkFileExists() == false) { this.Theme = "BaseLight"; this.AccentColor = "Blue"; saveEinstellungen(); } XMLWriter xml = new XMLWriter(); Einstellungen Einstellung = xml.Read(GetApplicationsPath() + "/" + xmlFile, this); AccentColor = Einstellung.AccentColor; Theme = Einstellung.Theme; }
public void saveEinstellungen() { XMLWriter xml = new XMLWriter(); xml.Write(GetApplicationsPath() + "/" + xmlFile, this); }