ajoue du logo

pull/9/head
Clement LESME 2 years ago
parent 63f14d2009
commit 896cf06b1d

@ -8,8 +8,8 @@ public partial class App : Application
public App()
{
manager.chargeDonne();
manager.Persi = new DataContractPersistance.DataContractPers();
manager.sauvegardeDonnee();
//manager.Persi = new DataContractPersistance.DataContractPers();
//manager.sauvegardeDonnee();
InitializeComponent();
MainPage = new AppShell();

@ -5,6 +5,7 @@ using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
using System.Xml;
namespace CanYouBuildIt.DataContractPersistance
{
@ -37,13 +38,15 @@ namespace CanYouBuildIt.DataContractPersistance
Directory.CreateDirectory(FilePath);
File.Create(Path.Combine(FilePath, FileName));
}
else
var settings = new XmlWriterSettings() { Indent = true };
using (TextWriter tw = File.CreateText(Path.Combine(FilePath, FileName)))
{
using (Stream stream = File.OpenWrite(Path.Combine(FilePath, FileName)))
using (XmlWriter writer = XmlWriter.Create(tw, settings))
{
serializer.WriteObject(stream, lu);
serializer.WriteObject(writer, lu);
}
}
return true;
}
}

Before

Width:  |  Height:  |  Size: 138 KiB

After

Width:  |  Height:  |  Size: 138 KiB

@ -4,9 +4,13 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="CanYouBuildIt.Views.Acceuil"
Title="Can You Build It"
BackgroundColor="White">
BackgroundColor="DarkTurquoise">
<VerticalStackLayout>
<Image Source="logoapp.png"
MaximumHeightRequest="150"/>
<Grid Margin="0,50,0,0">
<Grid.RowDefinitions>
<RowDefinition />

@ -2,9 +2,13 @@
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="CanYouBuildIt.Views.Credits"
Title="Credits">
Title="Credits"
BackgroundColor="DarkTurquoise">
<VerticalStackLayout>
<Image Source="logoapp.png"
MaximumHeightRequest="150"/>
<Grid>
<Grid.RowDefinitions>
<RowDefinition />

@ -3,9 +3,13 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="CanYouBuildIt.Views.Favoris"
Title="Favoris"
BackgroundColor="White">
BackgroundColor="DarkTurquoise">
<VerticalStackLayout>
<Image Source="logoapp.png"
MaximumHeightRequest="100"/>
<Grid Margin="0,50,0,0">
<Grid.RowDefinitions>
<RowDefinition />

Loading…
Cancel
Save