update data binding in rib page

pull/46/head
Antoine PEREDERII 2 years ago
parent abe1cb8384
commit e7eb5d220f

@ -66,4 +66,7 @@
<Folder Include="Views\Balance\" /> <Folder Include="Views\Balance\" />
<Folder Include="Views\Category\" /> <Folder Include="Views\Category\" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<PackageReference Include="Syncfusion.Pdf.Net.Core" Version="21.2.6" />
</ItemGroup>
</Project> </Project>

@ -5,97 +5,12 @@
<VerticalStackLayout> <VerticalStackLayout>
<Grid RowDefinitions="auto, auto"
ColumnDefinitions="*, *">
<Label Text="Code Banque" />
<Label Text="Code agence"
Grid.Column="1" />
<Label Text="102 330"
Grid.Row="1" />
<Label Text="01 009"
Grid.Column="1"
Grid.Row="1" />
</Grid>
<Grid RowDefinitions="auto, auto, auto"
ColumnDefinitions="*, *, auto" >
<Label Text="N° de Compte" />
<Label Text="0000545090"
Grid.Row="1" />
<Label Text="Clé RIB"
Grid.Column="1" />
<Label Text="55"
Grid.Column="1"
Grid.Row="1" />
<Image Source="dotnet_bot.png"
Grid.Column="2"
Grid.RowSpan="2"
MaximumHeightRequest="45"/>
<BoxView Color="Gray"
Grid.ColumnSpan="3"
Grid.Row="2"
WidthRequest="400"
HeightRequest="1.5"/>
</Grid>
<Grid RowDefinitions="auto, auto, auto"
ColumnDefinitions="*, auto" >
<Label Text="RIB" />
<Label Text="FR56 9989 9900 7723 7732 7324 048"
Grid.Row="1" />
<Image Source="dotnet_bot.png"
Grid.Column="1"
Grid.RowSpan="2"
MaximumHeightRequest="50" />
<BoxView Color="Gray"
Grid.ColumnSpan="2"
Grid.Row="2"
WidthRequest="400"
HeightRequest="1.5" />
</Grid>
<Grid RowDefinitions="auto, auto, auto"
ColumnDefinitions="*, auto" >
<Label Text="RIB" />
<Label Text="FR56 9989 9900 7723 7732 7324 048"
Grid.Row="1" />
<Image Source="dotnet_bot.png"
Grid.Column="1"
Grid.RowSpan="2"
MaximumHeightRequest="50" />
<BoxView Color="Gray"
Grid.ColumnSpan="2"
Grid.Row="2"
WidthRequest="400"
HeightRequest="1.5" />
</Grid>
<Grid RowDefinitions="auto, auto, auto" <Grid RowDefinitions="auto, auto, auto"
ColumnDefinitions="*, auto" > ColumnDefinitions="*, auto" >
<Label Text="RIB" /> <Label Text="RIB" />
<Label Text="FR56 9989 9900 7723 7732 7324 048" <Label Text="{Binding SelectedAccount.IBAN}"
Grid.Row="1" /> Grid.Row="1" />
<Image Source="dotnet_bot.png" <Image Source="dotnet_bot.png"
@ -103,8 +18,7 @@
Grid.RowSpan="2" Grid.RowSpan="2"
MaximumHeightRequest="50" /> MaximumHeightRequest="50" />
<BoxView Color="Gray" <BoxView Grid.ColumnSpan="2"
Grid.ColumnSpan="2"
Grid.Row="2" Grid.Row="2"
WidthRequest="400" WidthRequest="400"
HeightRequest="1.5" /> HeightRequest="1.5" />
@ -114,7 +28,8 @@
<Label <Label
Text="Titulaire du compte" /> Text="Titulaire du compte" />
<Label Text="M BOURAUD DESCHAMPS" /> <Label Text="{Binding SelectedCustomer.Name}" />
<Label Text="{Binding SelectedCustomer.FirstName}" />
<!--<Button Text="Télécharger le RIB" <!--<Button Text="Télécharger le RIB"
HeightRequest="150" HeightRequest="150"

@ -1,9 +1,14 @@
namespace Banquale.Views.Transfer; using Banquale.Model;
namespace Banquale.Views.Transfer;
public partial class RibPage : ContentPage public partial class RibPage : ContentPage
{ {
public RibPage() public Manager Mgr => (App.Current as App).MyManager;
public RibPage()
{ {
InitializeComponent(); InitializeComponent();
} BindingContext = Mgr;
}
} }

Loading…
Cancel
Save