problem path fixed
continuous-integration/drone/push Build is failing Details

pull/26/head
Vianney JOURDY 2 years ago
parent b38f0fd826
commit 8d008f9b92

@ -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();
}
}

@ -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<Oeuvre>, List<Utilisateur>) chargeDonne()
{

@ -1,39 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<ArrayOfOeuvre xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MangaMap.Model">
<Oeuvre>
<Affiche>test2.png</Affiche>
<Description>A la fin il meurt</Description>
<Genre xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:string>Action</d3p1:string>
<d3p1:string>Future</d3p1:string>
</Genre>
<NbEpisodes>24</NbEpisodes>
<Nom>test2</Nom>
<Note>2</Note>
<Type>DVD</Type>
</Oeuvre>
<Oeuvre>
<Affiche>test.jpg</Affiche>
<Description>C'est une bonne série</Description>
<Genre xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:string>Action</d3p1:string>
<d3p1:string>Future</d3p1:string>
</Genre>
<NbEpisodes>150</NbEpisodes>
<Nom>test</Nom>
<Note>4</Note>
<Type>TV</Type>
</Oeuvre>
<Oeuvre>
<Affiche>test2.png</Affiche>
<Description>A la fin il meurt</Description>
<Genre xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:string>Action</d3p1:string>
<d3p1:string>Future</d3p1:string>
</Genre>
<NbEpisodes>24</NbEpisodes>
<Nom>test2</Nom>
<Note>2</Note>
<Type>DVD</Type>
</Oeuvre>
</ArrayOfOeuvre>
Loading…
Cancel
Save