Modification vues pour fonctionner sur IOS
continuous-integration/drone/push Build is failing Details

GestionBanques
Lucas Evard 2 years ago
parent 1565ff6d0e
commit 1a99d87d1a

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:composant="clr-namespace:IHM.Composant" xmlns:composant="clr-namespace:IHM.Composant"
@ -22,8 +22,8 @@
<HorizontalStackLayout Grid.Row="0" Grid.Column="0" VerticalOptions="Center"> <HorizontalStackLayout Grid.Row="0" Grid.Column="0" VerticalOptions="Center">
<Image Source="Resources/Images/logo_sans_fond.png" HeightRequest="50" Margin="20"/> <Image Source="Resources/Images/logo_sans_fond.png" HeightRequest="50" Margin="20"/>
<Label Text="Cons'Eco" FontSize="20" VerticalOptions="Center" FontAttributes="Bold"/> <Label Text="Cons'Eco" FontSize="20" VerticalOptions="Center" FontAttributes="Bold"/>
<Button x:Name="boutonRetour" Text="retour" HeightRequest="50" Clicked="returnbutton" IsVisible="False" HorizontalOptions="End"/>
</HorizontalStackLayout> </HorizontalStackLayout>
<Label Grid.Row="1" Grid.ColumnSpan="3" Text="Liste des banques disponible : " FontAttributes="Bold" FontSize="Body" Padding="20,10,0,0"/> <Label Grid.Row="1" Grid.ColumnSpan="3" Text="Liste des banques disponible : " FontAttributes="Bold" FontSize="Body" Padding="20,10,0,0"/>
<Border Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3" <Border Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3"

@ -12,6 +12,10 @@ public partial class AjoutBanques : ContentPage
InitializeComponent(); InitializeComponent();
BindingContext = Mgr; BindingContext = Mgr;
Mgr.importBanques(); Mgr.importBanques();
if (OperatingSystem.IsIOS())
{
boutonRetour.IsVisible = true;
}
} }
private async void ImportOFX_Clicked(object sender, EventArgs e) private async void ImportOFX_Clicked(object sender, EventArgs e)
@ -45,9 +49,10 @@ public partial class AjoutBanques : ContentPage
{ {
Debug.WriteLine(ex.Message); Debug.WriteLine(ex.Message);
} }
} }
private async void returnbutton(object sender, EventArgs e)
{
await Navigation.PopModalAsync();
} }
}

@ -1,7 +1,8 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="IHM.Mobile.DashBoard"> x:Class="IHM.Mobile.DashBoard">
<ScrollView>
<Grid> <Grid>
<Grid.RowDefinitions> <Grid.RowDefinitions>
<RowDefinition Height="0.25*"/> <RowDefinition Height="0.25*"/>
@ -15,20 +16,39 @@
<ColumnDefinition/> <ColumnDefinition/>
<ColumnDefinition/> <ColumnDefinition/>
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<StackLayout Orientation="Horizontal">
<HorizontalStackLayout Grid.Row="0" Grid.Column="0" VerticalOptions="Center"> <Label
<Image Source="Resources/Images/logo_sans_fond.png" HeightRequest="50" Margin="20"/> Text="Bienvenue"
<Label Text="Cons'Eco" FontSize="20" VerticalOptions="Center" FontAttributes="Bold"/> VerticalOptions="Center"
</HorizontalStackLayout> HorizontalOptions="Start"
Margin="10,10,10,20"
FontSize="25"
/>
<Label
FontAttributes="Bold"
Margin="0,10,0,0"
Text="{Binding User.Prenom}"
FontSize="25"
/>
</StackLayout>
<ImageButton Grid.Row="0" Grid.Column="1" Source="account_banks.png" <ImageButton Grid.Row="0" Grid.Column="1" Source="account_banks.png"
HorizontalOptions="End" Padding="10" Margin="10" HorizontalOptions="End" Padding="10" Margin="10"
CornerRadius="10" HeightRequest="65" CornerRadius="10" HeightRequest="65"
BackgroundColor="{StaticResource Primary}" BackgroundColor="{StaticResource Primary}"
Clicked="Banques_Clicked"/> Clicked="Banques_Clicked"/>
<Label Grid.Row="1" Grid.ColumnSpan="2" Text="Liste des Dernières Opérations : " FontAttributes="Bold" FontSize="Body" Padding="20,5,0,0"/> <Label Grid.Row="1" Grid.ColumnSpan="2" Text="Liste des Dernières Opérations : " FontAttributes="Bold" FontSize="Body" Padding="20,5,0,0"/>
<CollectionView Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" ItemsSource="{Binding LesOpe}"> <CollectionView Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" ItemsSource="{Binding LesOpe}">
<CollectionView.ItemTemplate> <CollectionView.ItemTemplate>
<DataTemplate> <DataTemplate>
@ -99,4 +119,5 @@
</Grid> </Grid>
</ScrollView>
</ContentPage> </ContentPage>

@ -9,7 +9,7 @@ public partial class DashBoard : ContentPage
{ {
InitializeComponent(); InitializeComponent();
//Routing.RegisterRoute(nameof(DashBoard), typeof(DashBoard)); //Routing.RegisterRoute(nameof(DashBoard), typeof(DashBoard));
BindingContext = Mgr;
if (Mgr.User == null) if (Mgr.User == null)
{ {
@ -34,4 +34,6 @@ public partial class DashBoard : ContentPage
{ {
loadPage(new GestionBanques()); loadPage(new GestionBanques());
} }
} }

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:composant="clr-namespace:IHM.Composant" xmlns:composant="clr-namespace:IHM.Composant"
@ -21,6 +21,7 @@
<HorizontalStackLayout Grid.Row="0" Grid.Column="0" VerticalOptions="Center"> <HorizontalStackLayout Grid.Row="0" Grid.Column="0" VerticalOptions="Center">
<Image Source="Resources/Images/logo_sans_fond.png" HeightRequest="50" Margin="20"/> <Image Source="Resources/Images/logo_sans_fond.png" HeightRequest="50" Margin="20"/>
<Label Text="Cons'Eco" FontSize="20" VerticalOptions="Center" FontAttributes="Bold"/> <Label Text="Cons'Eco" FontSize="20" VerticalOptions="Center" FontAttributes="Bold"/>
<Button x:Name="boutonRetour" Text="retour" HeightRequest="50" Clicked="returnbutton" IsVisible="False" HorizontalOptions="End"/>
</HorizontalStackLayout> </HorizontalStackLayout>
<ImageButton Grid.Row="0" Grid.Column="2" Source="add_banks.png" <ImageButton Grid.Row="0" Grid.Column="2" Source="add_banks.png"

@ -12,7 +12,10 @@ public partial class GestionBanques : ContentPage
InitializeComponent(); InitializeComponent();
BindingContext= Mgr; BindingContext= Mgr;
Mgr.LoadBanques(); Mgr.LoadBanques();
if (OperatingSystem.IsIOS())
{
boutonRetour.IsVisible = true;
}
} }
public async void loadPage(Page p) public async void loadPage(Page p)
@ -24,4 +27,9 @@ public partial class GestionBanques : ContentPage
{ {
loadPage(new AjoutBanques()); loadPage(new AjoutBanques());
} }
private async void returnbutton(object sender, EventArgs e)
{
await Navigation.PopModalAsync();
}
} }

@ -1,9 +1,8 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="IHM.Mobile.Operations"> x:Class="IHM.Mobile.Operations">
<VerticalStackLayout> <VerticalStackLayout>
<ScrollView>
<CollectionView Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" ItemsSource="{Binding User.LesBanques[0].ListeDesComptes[0].LesOpe}"> <CollectionView Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" ItemsSource="{Binding User.LesBanques[0].ListeDesComptes[0].LesOpe}">
<CollectionView.ItemTemplate> <CollectionView.ItemTemplate>
<DataTemplate> <DataTemplate>
@ -24,7 +23,7 @@
CornerRadius="10"/>--> CornerRadius="10"/>-->
<Label Grid.Row="0" Grid.Column="1" <Label Grid.Row="0" Grid.Column="1"
Text="{Binding IntituleOperation}" Text="{Binding IntituleOperation}"
FontAttributes="Bold" /> FontAttributes="Bold" TextColor="Brown" />
<Label Grid.Row="1" Grid.Column="1" <Label Grid.Row="1" Grid.Column="1"
Text="{Binding DetailTypeOpe}" Text="{Binding DetailTypeOpe}"
FontAttributes="Italic"/> FontAttributes="Italic"/>
@ -37,8 +36,5 @@
</DataTemplate> </DataTemplate>
</CollectionView.ItemTemplate> </CollectionView.ItemTemplate>
</CollectionView> </CollectionView>
</ScrollView>
</VerticalStackLayout> </VerticalStackLayout>
</ContentPage> </ContentPage>

@ -1,3 +1,4 @@
using System.Diagnostics;
using Model; using Model;
namespace IHM.Mobile; namespace IHM.Mobile;
@ -10,5 +11,4 @@ public partial class Operations : ContentPage
InitializeComponent(); InitializeComponent();
BindingContext = Mgr; BindingContext = Mgr;
} }
} }

@ -26,7 +26,5 @@
<string>UIInterfaceOrientationLandscapeLeft</string> <string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string> <string>UIInterfaceOrientationLandscapeRight</string>
</array> </array>
<key>XSAppIconAssets</key>
<string>Assets.xcassets/appicon.appiconset</string>
</dict> </dict>
</plist> </plist>

Loading…
Cancel
Save