Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Livre : MvxViewModel
- {
- private string _titre;
- public string Titre
- {
- get { return _titre; }
- set { _titre = value;
- RaisePropertyChanged();
- }
- }
- private string _auteur;
- public string Auteur
- {
- get { return _auteur; }
- set { _auteur = value;
- RaisePropertyChanged();
- }
- }
- private string _synopsis;
- public string Synopsis
- {
- get { return _synopsis; }
- set { _synopsis = value;
- RaisePropertyChanged();
- }
- }
- private string _date;
- public string Date
- {
- get { return _date; }
- set { _date = value;
- RaisePropertyChanged();
- }
- }
- private int _note;
- public int Note
- {
- get { return _note; }
- set { _note = value;
- RaisePropertyChanged();
- }
- }
- public Livre(string nom, string auteur, string synopsis, string date, int note )
- {
- this.Titre = nom;
- this.Auteur = auteur;
- this.Synopsis = synopsis;
- this.Date = date;
- this.Note = note;
- }
- }
- class User : MvxViewModel
- {
- private string _nom;
- public string Nom
- {
- get { return _nom; }
- set { _nom = value;
- RaisePropertyChanged();
- }
- }
- private string _pass;
- public string Pass
- {
- get { return _pass; }
- set { _pass = value;
- RaisePropertyChanged();
- }
- }
- private List<Livre> _listLivre;
- public List<Livre> ListLivre
- {
- get { return _listLivre; }
- set {_listLivre = value;
- RaisePropertyChanged();
- }
- }
- public User(string nom, string pass)
- {
- this.Nom = nom;
- this.Pass = pass;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement