update font and fontsize

pull/69/head
Antoine PEREDERII 2 years ago
parent a3c2e24559
commit b098e94ba2

@ -8,7 +8,7 @@
<Label
Text="Informations du client"
FontSize="Title"
FontSize="30"
HorizontalOptions="Center"
Margin="0,20,0,15"
TextColor="Red"/>
@ -22,7 +22,7 @@
<Label
Text="Nom"
FontSize="Subtitle"
FontSize="16"
Grid.Column="0"
Grid.Row="0"/>
<Entry
@ -33,7 +33,7 @@
<Label
Text="Prénom"
FontSize="Subtitle"
FontSize="16"
Grid.Column="1"
Grid.Row="0"/>
<Entry
@ -46,14 +46,15 @@
<Label
Text="Mot de Passe"
FontSize="Subtitle" />
FontSize="16" />
<Entry
x:Name="PasswordEntry"
Placeholder="Entrez le mot de passe" />
Placeholder="Entrez le mot de passe"
IsPassword="True"/>
<Label
Text="Compte 1"
FontSize="Title"
FontSize="25"
Margin="0, 10, 0, 10"
TextColor="DarkRed"/>
@ -63,7 +64,7 @@
<Label
Text="Solde"
FontSize="Subtitle"
FontSize="16"
Grid.Column="0"
Grid.Row="0"/>
<Entry
@ -75,7 +76,7 @@
<Label
Text="Nom du compte"
FontSize="Subtitle"
FontSize="16"
Grid.Column="1"
Grid.Row="0"/>
<Entry
@ -88,7 +89,7 @@
<Label
Text="IBAN"
FontSize="Subtitle" />
FontSize="16" />
<Entry
Text="FR "
x:Name="AccountIbanEntry"
@ -97,8 +98,6 @@
</StackLayout>
<Button
Text="Ajouter un compte"
HorizontalOptions="Center"

@ -8,6 +8,7 @@ public partial class CreateCustomerPage : ContentPage
int nbAccount = 1;
public CreateCustomerPage()
{
InitializeComponent();
@ -45,13 +46,14 @@ public partial class CreateCustomerPage : ContentPage
public void Account_Clicked(object sender, EventArgs e)
{
nbAccount++;
if(nbAccount >= 4)
if(nbAccount >= 3)
{
DisplayAlert("Erreur", "Impossible d'ajouter plus de compte. Un client ne peut avoir plus de 3 comptes.", "OK");
DisplayAlert("Erreur", "Impossible d'ajouter plus de compte. Un client ne peut avoir plus de 2 comptes.", "OK");
return;
}
Label account = new Label { Text = "Compte " + Convert.ToString(nbAccount)};
account.FontSize = 20;
account.FontSize = 25;
account.TextColor = Colors.DarkRed;
Grid gridAccount = new Grid();
ColumnDefinition col1 = new ColumnDefinition(GridLength.Star);
ColumnDefinition col2 = new ColumnDefinition(GridLength.Star);
@ -62,11 +64,13 @@ public partial class CreateCustomerPage : ContentPage
gridAccount.ColumnDefinitions.Add(col1);
gridAccount.ColumnDefinitions.Add(col2);
Label balance = new Label { Text = "Solde" };
balance.FontSize = 12;
balance.FontSize = 16;
Entry balanceEntry = new Entry { Placeholder = "Entrez le solde du compte" };
Label nameLabel = new Label { Text = "Nom du compte" };
nameLabel.FontSize = 16;
Entry nameEntry = new Entry { Placeholder = "Entrez le nom du compte" };
Label iban = new Label { Text = "IBAN" };
iban.FontSize = 16;
Entry ibanEntry = new Entry { Placeholder = "Entrez l'IBAN du compte" };
StackLayout.Add(account);
gridAccount.SetColumn(balance, 0);

Loading…
Cancel
Save