diff --git a/Sources/IHM/App.xaml.cs b/Sources/IHM/App.xaml.cs index 58578b3..2f0051b 100644 --- a/Sources/IHM/App.xaml.cs +++ b/Sources/IHM/App.xaml.cs @@ -10,10 +10,14 @@ namespace IHM { InitializeComponent(); - MainPage = new AppShell(); - - - + if(OperatingSystem.IsWindows() || OperatingSystem.IsMacOS()) + { + MainPage = new AppShellDesktop(); + } + else + { + MainPage = new AppShell(); + } } } diff --git a/Sources/IHM/AppShell.xaml b/Sources/IHM/AppShell.xaml index cdeba6e..f5e6baf 100644 --- a/Sources/IHM/AppShell.xaml +++ b/Sources/IHM/AppShell.xaml @@ -3,7 +3,7 @@ x:Class="IHM.AppShell" xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" - xmlns:local="clr-namespace:IHM" + xmlns:local="clr-namespace:IHM.Mobile" Shell.FlyoutBehavior="Disabled" Shell.NavBarIsVisible="False"> diff --git a/Sources/IHM/AppShell.xaml.cs b/Sources/IHM/AppShell.xaml.cs index 1ced756..e82d776 100644 --- a/Sources/IHM/AppShell.xaml.cs +++ b/Sources/IHM/AppShell.xaml.cs @@ -1,4 +1,5 @@ -using Model; +using IHM.Mobile; +using Model; namespace IHM { @@ -16,6 +17,8 @@ namespace IHM } + + } diff --git a/Sources/IHM/AppShellDesktop.xaml b/Sources/IHM/AppShellDesktop.xaml new file mode 100644 index 0000000..a84f38e --- /dev/null +++ b/Sources/IHM/AppShellDesktop.xaml @@ -0,0 +1,14 @@ + + + + + + diff --git a/Sources/IHM/AppShellDesktop.xaml.cs b/Sources/IHM/AppShellDesktop.xaml.cs new file mode 100644 index 0000000..5193cab --- /dev/null +++ b/Sources/IHM/AppShellDesktop.xaml.cs @@ -0,0 +1,19 @@ +using IHM.Desktop; +using Model; + +namespace IHM +{ + public partial class AppShellDesktop : Shell + { + public Manager Mgr => (App.Current as App).Manager; + + public AppShellDesktop() + { + InitializeComponent(); + } + + + + + } +} \ No newline at end of file diff --git a/Sources/IHM/Desktop/MainPage.xaml b/Sources/IHM/Desktop/MainPage.xaml new file mode 100644 index 0000000..30488e8 --- /dev/null +++ b/Sources/IHM/Desktop/MainPage.xaml @@ -0,0 +1,90 @@ + + + + + + + + + + + +