Merge branch 'xaml-C#/data-binding' of codefirst.iut.uca.fr:antoine.perederii/Banquale into xaml-C#/data-binding

pull/69/head
Titouan LOUVET 2 years ago
commit 55ea5ef387

@ -34,11 +34,6 @@
</Grid.GestureRecognizers>
<Label
Text="{Binding Id}"
Grid.Column="0"
x:Name="transactionId"/>
<Label
Text="{Binding Date, StringFormat='{0:ddd dd MMM yyyy}'}"
Grid.Column="1"

@ -93,6 +93,7 @@
<Entry
Text="FR "
x:Name="AccountIbanEntry"
TextChanged="IbanChanged"
Placeholder="Entrez l'IBAN du compte"
Keyboard="Telephone"/>

@ -86,12 +86,17 @@ public partial class CreateCustomerPage : ContentPage
gridAccount.Children.Add(nameLabel);
gridAccount.Children.Add(nameEntry);
StackLayout.Add(gridAccount);
//StackLayout.Add(balance);
// StackLayout.Add(balanceEntry);
//StackLayout.Add(nameLabel);
//StackLayout.Add(nameEntry);
StackLayout.Add(iban);
StackLayout.Add(ibanEntry);
}
public void IbanChanged(object sender, EventArgs e)
{
if(AccountIbanEntry.Text.Length < 3)
{
DisplayAlert("Erreur", "Vous ne pouvez pas effacer le FR !", "OK");
}
var cast = ((Entry)sender);
}
}

@ -26,7 +26,7 @@
Padding="15, 5, 15, 5">
<Editor Placeholder="Decrivez votre demande ici."
x:Name="Message"/>
x:Name="Description"/>
</Frame>

@ -11,9 +11,17 @@ public partial class HelpPage : ContentPage
public async void Send_Clicked(Object sender, EventArgs e)
{
Message message = Account.AskForHelp(Subject.Text, Message.Text);
if(Subject.Text.Length >= 50 || Description.Text.Length >= 200)
{
DisplayAlert("Erreur", "Trop de caracteres", "OK");
}
else
{
Message message = Account.AskForHelp(Subject.Text, Description.Text);
Mgr.Consultant.MessagesList.Add(message);
await Shell.Current.GoToAsync("//balance");
}
}
}

@ -13,7 +13,8 @@
<ListView
ItemsSource="{Binding AccountsList}"
SelectionMode="None">
SelectionMode="None"
RowHeight="100">
<ListView.ItemTemplate>
@ -22,7 +23,7 @@
<ViewCell>
<VerticalStackLayout
HeightRequest="84"
HeightRequest="100"
Margin="10">
<Button

@ -36,8 +36,7 @@ public partial class SwitchAccountPage : ContentPage
{
if(Mgr.IsConsultant == true)
{
//await Shell.Current.GoToAsync(;
Debug.WriteLine("Hello");
await Shell.Current.Navigation.PopAsync();
}
else
{

Loading…
Cancel
Save