|
|
@ -101,6 +101,7 @@ public partial class CreateCustomerPage : ContentPage
|
|
|
|
iban.Text = "IBAN";
|
|
|
|
iban.Text = "IBAN";
|
|
|
|
iban.FontSize = 16;
|
|
|
|
iban.FontSize = 16;
|
|
|
|
ibanEntry.Text = "FR";
|
|
|
|
ibanEntry.Text = "FR";
|
|
|
|
|
|
|
|
ibanEntry.TextChanged += IbanChanged;
|
|
|
|
ibanEntry.Placeholder = "Entrez l'IBAN du compte";
|
|
|
|
ibanEntry.Placeholder = "Entrez l'IBAN du compte";
|
|
|
|
ibanEntry.Keyboard = Keyboard.Numeric;
|
|
|
|
ibanEntry.Keyboard = Keyboard.Numeric;
|
|
|
|
StackLayout.Add(account);
|
|
|
|
StackLayout.Add(account);
|
|
|
@ -123,11 +124,12 @@ public partial class CreateCustomerPage : ContentPage
|
|
|
|
|
|
|
|
|
|
|
|
public void IbanChanged(object sender, EventArgs e)
|
|
|
|
public void IbanChanged(object sender, EventArgs e)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if(AccountIbanEntry.Text.Length < 2)
|
|
|
|
if(AccountIbanEntry.Text.Length < 2 || ibanEntry.Text.Length < 2)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
DisplayAlert("Erreur", "Vous ne pouvez pas effacer le FR !", "OK");
|
|
|
|
DisplayAlert("Erreur", "Vous ne pouvez pas effacer le FR !", "OK");
|
|
|
|
var cast = ((Entry)sender);
|
|
|
|
var cast = ((Entry)sender);
|
|
|
|
cast.Text = "FR";
|
|
|
|
cast.Text = "FR";
|
|
|
|
|
|
|
|
cast.CursorPosition = 3;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|