Ajout des routes et manager (Persistance de Game)
continuous-integration/drone/push Build is failing Details

pull/99/head
Rémi LAVERGNE 11 months ago
parent 531b45f159
commit fcb586b474

@ -1,11 +1,27 @@
namespace Trek_12
using DataContractPersistence;
using Models.Game;
namespace Trek_12
{
public partial class App : Application
{
public string FileName { get; set; } = "data.json";
public string FilePath { get; set; } = Path.Combine(AppDomain.CurrentDomain.BaseDirectory);
public Game Manager { get; private set; }
public App()
{
InitializeComponent();
if(File.Exists(Path.Combine(FilePath, FileName)))
{
Manager = new Game(new DataContractJson());
}
Manager.LoadData();
MainPage = new AppShell();
}
}

@ -69,6 +69,7 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\DataContractPersistence\DataContractPersistence.csproj" />
<ProjectReference Include="..\Models\Models.csproj" />
<ProjectReference Include="..\Stub\Stub.csproj" />
</ItemGroup>

Loading…
Cancel
Save