Es wird ein backup angelegt bevor die datei geöffnet wird um Datenverlust zu vermeiden.
massenstatistik deaktiviert
This commit is contained in:
@@ -38,7 +38,10 @@ namespace Database
|
||||
string filepath = Path.Combine(projektpfad, string.Format("{0}.xaml", projekt));
|
||||
this.projektpfad = filepath;
|
||||
if (File.Exists(filepath))
|
||||
{
|
||||
File.Copy(filepath, string.Format("{0}_{1}_{2}.bak", filepath,DateTime.Now.ToShortDateString(),DateTime.Now.Ticks));
|
||||
loadedProjekt = XamlServices.Load(filepath) as KlassenBIB.Projekt;
|
||||
}
|
||||
else
|
||||
loadedProjekt = new KlassenBIB.Projekt();
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user