diff --git a/MangaMap/App.xaml.cs b/MangaMap/App.xaml.cs index 3ea098e..ab97355 100644 --- a/MangaMap/App.xaml.cs +++ b/MangaMap/App.xaml.cs @@ -14,14 +14,11 @@ public partial class App : Application public App() { InitializeComponent(); - - // MyManager.Persistance = new DataContract(); MyManager.charger(); - MyManager.Admins.Add(MyAdmin); MainPage = new AppShell(); - + //MyManager.Persistance = new DataContract(); MyManager.sauvegarder(); } } diff --git a/MangaMap/Model/Oeuvre.cs b/MangaMap/Model/Oeuvre.cs index 634ae1e..5090ec9 100644 --- a/MangaMap/Model/Oeuvre.cs +++ b/MangaMap/Model/Oeuvre.cs @@ -41,4 +41,4 @@ namespace MangaMap.Model NbEpisodes = NbEpisodes + nb; } } -} +} \ No newline at end of file diff --git a/MangaMap/Model/Utilisateur.cs b/MangaMap/Model/Utilisateur.cs index b6ffe75..7b58b3e 100644 --- a/MangaMap/Model/Utilisateur.cs +++ b/MangaMap/Model/Utilisateur.cs @@ -42,4 +42,4 @@ namespace MangaMap.Model this.age = 0; } } -} +} \ No newline at end of file diff --git a/MangaMap/Stub/DataContract.cs b/MangaMap/Stub/DataContract.cs index 8ecd04d..830dc26 100644 --- a/MangaMap/Stub/DataContract.cs +++ b/MangaMap/Stub/DataContract.cs @@ -12,9 +12,10 @@ namespace MangaMap.Stub { public class DataContract : IPersistanceManager { - public string FilePath2 { get; set; } = Path.Combine(Directory.GetCurrentDirectory(), "\\..\\..\\Users"); - public string FilePath { get; set; } = "C:\\Users\\vjour\\UCA\\MapManga\\MangaMap"; - public string FileName { get; set; } = "Test1.xml"; + public string FileName { get; set; } = "SauvegardeDonnees.xml"; + public string FilePath { get; set; } = Path.Combine(AppDomain.CurrentDomain.BaseDirectory); + //public string FilePath2 { get; set; } = "C:\\Users\\vjour\\UCA\\MapManga\\MangaMap"; + //public string FilePath2 { get; set; } = Path.Combine(Directory.GetCurrentDirectory(), "\\..\\..\\Users"); public (List, List) chargeDonne() { @@ -54,4 +55,4 @@ namespace MangaMap.Stub } } } -} +} \ No newline at end of file diff --git a/MangaMap/Test1.xml b/MangaMap/Test1.xml deleted file mode 100644 index 29bfc59..0000000 --- a/MangaMap/Test1.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - test2.png - A la fin il meurt - - Action - Future - - 24 - test2 - 2 - DVD - - - test.jpg - C'est une bonne série - - Action - Future - - 150 - test - 4 - TV - - - test2.png - A la fin il meurt - - Action - Future - - 24 - test2 - 2 - DVD - - \ No newline at end of file