parent
a1259cbdd4
commit
45aa7ce5bd
@ -0,0 +1,99 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
|
xmlns:model="clr-namespace:CanYouBuildIt.Model"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
|
x:Class="CanYouBuildIt.Views.Acceuil"
|
||||||
|
Title="Can You Build It"
|
||||||
|
BackgroundColor="White"
|
||||||
|
>
|
||||||
|
|
||||||
|
<ContentPage.BindingContext>
|
||||||
|
<model:Manager/>
|
||||||
|
</ContentPage.BindingContext>
|
||||||
|
|
||||||
|
<VerticalStackLayout Margin="0,15,0,0">
|
||||||
|
<Grid>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition />
|
||||||
|
<RowDefinition Height="1"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition />
|
||||||
|
<ColumnDefinition />
|
||||||
|
<ColumnDefinition />
|
||||||
|
<ColumnDefinition />
|
||||||
|
<ColumnDefinition />
|
||||||
|
<ColumnDefinition />
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
<Image Grid.Row="0" Grid.Column="0"
|
||||||
|
Source="pc1.png"
|
||||||
|
HeightRequest="200"
|
||||||
|
/>
|
||||||
|
<Image Grid.Row="0" Grid.Column="2"
|
||||||
|
Source="pc3.png"
|
||||||
|
HeightRequest="200"
|
||||||
|
/>
|
||||||
|
<Image Grid.Row="0" Grid.Column="4"
|
||||||
|
Source="pc3.png"
|
||||||
|
HeightRequest="200"
|
||||||
|
/>
|
||||||
|
<Image Grid.Row="1" Grid.Column="1"
|
||||||
|
Source="pc2.png"
|
||||||
|
HeightRequest="200"
|
||||||
|
/>
|
||||||
|
<Image Grid.Row="1" Grid.Column="3"
|
||||||
|
Source="pc4.png"
|
||||||
|
HeightRequest="200"
|
||||||
|
/>
|
||||||
|
<Image Grid.Row="1" Grid.Column="5"
|
||||||
|
Source="pc2.png"
|
||||||
|
HeightRequest="200"
|
||||||
|
/>
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
|
||||||
|
<Grid Margin="0,250">
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition />
|
||||||
|
<RowDefinition Height="1"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition />
|
||||||
|
<ColumnDefinition />
|
||||||
|
<ColumnDefinition />
|
||||||
|
<ColumnDefinition />
|
||||||
|
<ColumnDefinition />
|
||||||
|
<ColumnDefinition />
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
<Button Grid.Row="0" Grid.Column="1"
|
||||||
|
x:Name="Config"
|
||||||
|
Text="Configurateur"
|
||||||
|
HorizontalOptions="Center"
|
||||||
|
Clicked="AddUtilisater"
|
||||||
|
BackgroundColor="DimGrey"
|
||||||
|
TextColor="Snow"/>
|
||||||
|
|
||||||
|
<Button Grid.Row="0" Grid.Column="4"
|
||||||
|
x:Name="Fav"
|
||||||
|
Text="Favoris"
|
||||||
|
HorizontalOptions="Center"
|
||||||
|
BackgroundColor="DimGrey"
|
||||||
|
TextColor="Snow"
|
||||||
|
Clicked="NavFav"/>
|
||||||
|
|
||||||
|
<ListView Grid.Row="1" Grid.Column="1"
|
||||||
|
x:Name="utilView"
|
||||||
|
ItemsSource="{Binding listUtil}">
|
||||||
|
<ListView.ItemTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<Label Text="{Binding name}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</ListView.ItemTemplate>
|
||||||
|
</ListView>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
</VerticalStackLayout>
|
||||||
|
</ContentPage>
|
@ -0,0 +1,27 @@
|
|||||||
|
using CanYouBuildIt.Model;
|
||||||
|
using Microsoft.UI.Xaml;
|
||||||
|
using System.Diagnostics;
|
||||||
|
|
||||||
|
namespace CanYouBuildIt.Views;
|
||||||
|
|
||||||
|
public partial class Acceuil : ContentPage
|
||||||
|
{
|
||||||
|
public Manager Manager=> (App.Current as App).Manager;
|
||||||
|
public Acceuil()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
utilView.BindingContext = Manager;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void AddUtilisater(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
Utilisateur utilisateur = new Utilisateur("Util1","pdm1");
|
||||||
|
Debug.WriteLine("Utilisateur créé");
|
||||||
|
}
|
||||||
|
private void NavFav(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
Navigation.PushAsync( new Favoris());
|
||||||
|
Navigation.PopAsync();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,36 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<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">
|
||||||
|
<VerticalStackLayout>
|
||||||
|
|
||||||
|
<Grid>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition />
|
||||||
|
<RowDefinition />
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition />
|
||||||
|
<ColumnDefinition />
|
||||||
|
<ColumnDefinition />
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
<Label Grid.Row="0" Grid.Column="1"
|
||||||
|
Text="Cliquez sur les logo pour acceder aux sites"
|
||||||
|
HorizontalOptions="Center"
|
||||||
|
FontSize="20"
|
||||||
|
FontFamily="Trebuchet MS"
|
||||||
|
Margin="0,25"/>
|
||||||
|
|
||||||
|
<Image Grid.Row="1" Grid.Column="0"
|
||||||
|
Source="logoldlc.png"/>
|
||||||
|
<Image Grid.Row="1" Grid.Column="1"
|
||||||
|
Source="logocanyourunit.png"/>
|
||||||
|
<Image Grid.Row="1" Grid.Column="2"
|
||||||
|
Source="logodenicheur.png"/>
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
</VerticalStackLayout>
|
||||||
|
</ContentPage>
|
@ -0,0 +1,9 @@
|
|||||||
|
namespace CanYouBuildIt.Views;
|
||||||
|
|
||||||
|
public partial class Credits : ContentPage
|
||||||
|
{
|
||||||
|
public Credits()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,60 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<ContentPage BackgroundColor="White"
|
||||||
|
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
|
x:Class="CanYouBuildIt.Views.Favoris"
|
||||||
|
Title="Favoris"/>
|
||||||
|
|
||||||
|
<VerticalStackLayout Margin="0,50,0,0">
|
||||||
|
<Grid>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition />
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition />
|
||||||
|
<ColumnDefinition />
|
||||||
|
<ColumnDefinition />
|
||||||
|
<ColumnDefinition />
|
||||||
|
<ColumnDefinition />
|
||||||
|
<ColumnDefinition />
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
<Image Grid.Column="0"
|
||||||
|
HeightRequest="200"
|
||||||
|
Source="pc3.png"
|
||||||
|
/>
|
||||||
|
<Image Grid.Column="2"
|
||||||
|
HeightRequest="200"
|
||||||
|
Source="pc3.png"
|
||||||
|
/>
|
||||||
|
<Image Grid.Column="4"
|
||||||
|
HeightRequest="200"
|
||||||
|
Source="pc3.png"
|
||||||
|
/>
|
||||||
|
<Image Grid.Column="1"
|
||||||
|
HeightRequest="200"
|
||||||
|
Source="pc3.png"
|
||||||
|
/>
|
||||||
|
<Image Grid.Column="3"
|
||||||
|
HeightRequest="200"
|
||||||
|
Source="pc3.png"
|
||||||
|
/>
|
||||||
|
<Image Grid.Column="5"
|
||||||
|
HeightRequest="200"
|
||||||
|
Source="pc3.png"
|
||||||
|
/>
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
|
||||||
|
<Button
|
||||||
|
BackgroundColor="DimGrey"
|
||||||
|
Clicked="backHome"
|
||||||
|
HorizontalOptions="Center"
|
||||||
|
SemanticProperties.Hint="Counts the number of times you click"
|
||||||
|
Text="Home"
|
||||||
|
TextColor="Snow"
|
||||||
|
x:Name="home"/>
|
||||||
|
|
||||||
|
</VerticalStackLayout>
|
||||||
|
|
@ -0,0 +1,14 @@
|
|||||||
|
namespace CanYouBuildIt.Views;
|
||||||
|
|
||||||
|
public partial class Favoris : ContentPage
|
||||||
|
{
|
||||||
|
public Favoris()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void backHome(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
Navigation.PopAsync();
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue