diff --git a/ViewsApp/ViewsApp/AppShell.xaml b/ViewsApp/ViewsApp/AppShell.xaml index d0c1636..9fb60f2 100644 --- a/ViewsApp/ViewsApp/AppShell.xaml +++ b/ViewsApp/ViewsApp/AppShell.xaml @@ -4,11 +4,25 @@ xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:local="clr-namespace:ViewsApp" + xmlns:views="clr-namespace:ViewsApp.Views" Shell.FlyoutBehavior="Disabled"> - + + + + ContentTemplate="{DataTemplate views:Accueil}" + Route="Accueil" /> + + + + + diff --git a/ViewsApp/ViewsApp/MainPage.xaml b/ViewsApp/ViewsApp/MainPage.xaml index d28fbb8..46d5241 100644 --- a/ViewsApp/ViewsApp/MainPage.xaml +++ b/ViewsApp/ViewsApp/MainPage.xaml @@ -19,6 +19,16 @@ + + + + + + - - - - diff --git a/ViewsApp/ViewsApp/MainPage.xaml.cs b/ViewsApp/ViewsApp/MainPage.xaml.cs index c55d699..0de68cc 100644 --- a/ViewsApp/ViewsApp/MainPage.xaml.cs +++ b/ViewsApp/ViewsApp/MainPage.xaml.cs @@ -13,8 +13,7 @@ public partial class MainPage : ContentPage private void Button_Clicked(object sender, EventArgs e) { - Utilisateur u = new Utilisateur(1, UtilEditor.Text); - UtilManager.ajouterUtilisateur(u); + } } diff --git a/ViewsApp/ViewsApp/Model/ReglageTempo.cs b/ViewsApp/ViewsApp/Model/ReglageTempo.cs index 549934e..587fe5a 100644 --- a/ViewsApp/ViewsApp/Model/ReglageTempo.cs +++ b/ViewsApp/ViewsApp/Model/ReglageTempo.cs @@ -10,13 +10,7 @@ namespace App.Models { public int Valeur { get; private set; } - - public void augmenter(int valeur) - { - Valeur = valeur; - } - - public void reduire(int valeur) + public void modifier(int valeur) { Valeur = valeur; } diff --git a/ViewsApp/ViewsApp/Resources/Images/logo.png b/ViewsApp/ViewsApp/Resources/Images/logo.png index 7af3d73..4ecbc4a 100644 Binary files a/ViewsApp/ViewsApp/Resources/Images/logo.png and b/ViewsApp/ViewsApp/Resources/Images/logo.png differ diff --git a/ViewsApp/ViewsApp/Views/Accueil.xaml b/ViewsApp/ViewsApp/Views/Accueil.xaml new file mode 100644 index 0000000..bb708ad --- /dev/null +++ b/ViewsApp/ViewsApp/Views/Accueil.xaml @@ -0,0 +1,82 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ViewsApp/ViewsApp/Views/Accueil.xaml.cs b/ViewsApp/ViewsApp/Views/Accueil.xaml.cs new file mode 100644 index 0000000..da03d45 --- /dev/null +++ b/ViewsApp/ViewsApp/Views/Accueil.xaml.cs @@ -0,0 +1,9 @@ +namespace ViewsApp.Views; + +public partial class Accueil : ContentPage +{ + public Accueil() + { + InitializeComponent(); + } +} \ No newline at end of file diff --git a/ViewsApp/ViewsApp/Views/Favoris.xaml b/ViewsApp/ViewsApp/Views/Favoris.xaml new file mode 100644 index 0000000..bb708ad --- /dev/null +++ b/ViewsApp/ViewsApp/Views/Favoris.xaml @@ -0,0 +1,82 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ViewsApp/ViewsApp/Views/Favoris.xaml.cs b/ViewsApp/ViewsApp/Views/Favoris.xaml.cs new file mode 100644 index 0000000..47d8238 --- /dev/null +++ b/ViewsApp/ViewsApp/Views/Favoris.xaml.cs @@ -0,0 +1,9 @@ +namespace ViewsApp.Views; + +public partial class Favoris : ContentPage +{ + public Favoris() + { + InitializeComponent(); + } +} \ No newline at end of file diff --git a/ViewsApp/ViewsApp/Views/NewPage1.xaml b/ViewsApp/ViewsApp/Views/NewPage1.xaml deleted file mode 100644 index 54ba23f..0000000 --- a/ViewsApp/ViewsApp/Views/NewPage1.xaml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/ViewsApp/ViewsApp/Views/NewPage1.xaml.cs b/ViewsApp/ViewsApp/Views/NewPage1.xaml.cs deleted file mode 100644 index ebd2f4d..0000000 --- a/ViewsApp/ViewsApp/Views/NewPage1.xaml.cs +++ /dev/null @@ -1,9 +0,0 @@ -namespace ViewsApp.Views; - -public partial class NewPage1 : ContentPage -{ - public NewPage1() - { - InitializeComponent(); - } -} \ No newline at end of file diff --git a/ViewsApp/ViewsApp/Views/Partition.xaml b/ViewsApp/ViewsApp/Views/Partition.xaml new file mode 100644 index 0000000..4114977 --- /dev/null +++ b/ViewsApp/ViewsApp/Views/Partition.xaml @@ -0,0 +1,12 @@ + + + + + \ No newline at end of file diff --git a/ViewsApp/ViewsApp/Views/Partition.xaml.cs b/ViewsApp/ViewsApp/Views/Partition.xaml.cs new file mode 100644 index 0000000..9c34fdb --- /dev/null +++ b/ViewsApp/ViewsApp/Views/Partition.xaml.cs @@ -0,0 +1,9 @@ +namespace ViewsApp.Views; + +public partial class Partition : ContentPage +{ + public Partition() + { + InitializeComponent(); + } +} \ No newline at end of file diff --git a/ViewsApp/ViewsApp/ViewsApp.csproj b/ViewsApp/ViewsApp/ViewsApp.csproj index 1cb6d58..85873d9 100644 --- a/ViewsApp/ViewsApp/ViewsApp.csproj +++ b/ViewsApp/ViewsApp/ViewsApp.csproj @@ -48,4 +48,16 @@ + + + MSBuild:Compile + + + MSBuild:Compile + + + MSBuild:Compile + + +