modification vue login
continuous-integration/drone/push Build is failing Details

pull/143/head
Nicolas MAYE 2 years ago
parent 5e393fc899
commit 3f341cebba

@ -19,5 +19,13 @@
VerticalOptions="Center"
HorizontalOptions="Center"
/>
<Label Text="Nom" Grid.Column="1" Grid.Row="0" Grid.ColumnSpan="3" Style="{StaticResource TitreWindows}"/>
<Label Grid.ColumnSpan="2" Grid.Column="1" Grid.Row="3" Style="{StaticResource TitreWindows}" Text="{Binding Nom}" Margin="20"/>
</Grid>
</ContentView>

@ -1,9 +1,16 @@
using Model;
namespace IHM.Desktop;
public partial class CV_Log : ContentView
{
public CV_Log()
public Manager Mgr => (App.Current as App).Manager;
public CV_Log()
{
InitializeComponent();
}
BindingContext = Mgr.User;
}
}

@ -44,6 +44,7 @@ namespace Model
}
}
private Banque selectedBanque;
public IList<Banque> BanquesDisponibleInApp
{
get => banquesDisponibleInApp;
@ -99,7 +100,7 @@ namespace Model
{
listeDesComptes.Clear();
if(SelectedBanque == null || SelectedCompte == null)
if(SelectedBanque == null)
{
throw new ArgumentNullException("Vous n'avez pas de banque disponible");
}
@ -115,7 +116,7 @@ namespace Model
}
foreach (var compte in listeDesComptes)
foreach (Compte compte in listeDesComptes)
{
try
{
@ -130,6 +131,14 @@ namespace Model
}
if (listeDesComptes.Count > 0)
{
selectedCompte = listeDesComptes.First();
}
}
@ -143,7 +152,11 @@ namespace Model
Debug.WriteLine(exception.Message);
}
SelectedBanque = listeDesBanques.First();
if(listeDesBanques.Count > 0)
{
SelectedBanque = listeDesBanques.First();
}
}
public async void LoadBanqueDispo()

Loading…
Cancel
Save