ajout d'un essaie de DataBinding sur la page NewPage1

pull/13/head
Antoine PEREDERII 2 years ago
parent f807862666
commit ba9fc6d58c

@ -10,13 +10,14 @@ namespace Banquale.Model
public class Client: Personne
{
public Client(string nom, string prenom, string mdp) : base(nom, prenom, mdp)
{
}
public List<Compte> ListeComptes { get; private set; }
public Client(string nom, string prenom, string mdp) : base(nom, prenom, mdp)
{}
}
}

@ -1,4 +1,5 @@
using System;
namespace Banquale.Model
{
public class Manager
@ -15,6 +16,16 @@ namespace Banquale.Model
return true;
}
public void Donnee()
{
Client Client1= new Client("Jacques", "Morice", "J'aimeLesFrites");
Client Client2 = new Client("Francis", "Begore", "J'aimeLes");
Client Client3 = new Client("Michel", "Boudout", "MonMdP");
Console.WriteLine(Client1);
AjouterClient(Client1);
AjouterClient(Client2);
AjouterClient(Client3);
}
}
}

@ -4,16 +4,14 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Banquale.Model
{
public class Personne
{
public string Nom { get; private set; }
public string Prenom { get; private set; }
public int Id { get; private set; }
public string Mdp { get; private set; }
public Personne(string nom, string prenom, string mdp)
@ -23,5 +21,7 @@ namespace Banquale.Model
Id = 0;
Mdp = mdp;
}
}
}

@ -12,5 +12,9 @@
<Button
Text="Click me"
Clicked="Button_Clicked"/>
<ListView
ItemsSource="{Binding Client}" />
</VerticalStackLayout>
</ContentPage>

Loading…
Cancel
Save