Advertisement
Guest User

Untitled

a guest
Dec 2nd, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.19 KB | None | 0 0
  1. class Livre : MvxViewModel
  2. {
  3. private string _titre;
  4.  
  5. public string Titre
  6. {
  7. get { return _titre; }
  8. set { _titre = value;
  9. RaisePropertyChanged();
  10. }
  11. }
  12.  
  13. private string _auteur;
  14.  
  15. public string Auteur
  16. {
  17. get { return _auteur; }
  18. set { _auteur = value;
  19. RaisePropertyChanged();
  20. }
  21. }
  22.  
  23. private string _synopsis;
  24.  
  25. public string Synopsis
  26. {
  27. get { return _synopsis; }
  28. set { _synopsis = value;
  29. RaisePropertyChanged();
  30. }
  31. }
  32.  
  33. private string _date;
  34.  
  35. public string Date
  36. {
  37. get { return _date; }
  38. set { _date = value;
  39. RaisePropertyChanged();
  40. }
  41. }
  42.  
  43. private int _note;
  44.  
  45. public int Note
  46. {
  47. get { return _note; }
  48. set { _note = value;
  49. RaisePropertyChanged();
  50. }
  51. }
  52.  
  53. public Livre(string nom, string auteur, string synopsis, string date, int note )
  54. {
  55. this.Titre = nom;
  56. this.Auteur = auteur;
  57. this.Synopsis = synopsis;
  58. this.Date = date;
  59. this.Note = note;
  60.  
  61. }
  62. }
  63.  
  64.  
  65. class User : MvxViewModel
  66. {
  67.  
  68. private string _nom;
  69.  
  70. public string Nom
  71. {
  72. get { return _nom; }
  73. set { _nom = value;
  74. RaisePropertyChanged();
  75. }
  76. }
  77.  
  78. private string _pass;
  79.  
  80. public string Pass
  81. {
  82. get { return _pass; }
  83. set { _pass = value;
  84. RaisePropertyChanged();
  85. }
  86. }
  87.  
  88. private List<Livre> _listLivre;
  89.  
  90. public List<Livre> ListLivre
  91. {
  92. get { return _listLivre; }
  93. set {_listLivre = value;
  94. RaisePropertyChanged();
  95. }
  96. }
  97.  
  98. public User(string nom, string pass)
  99. {
  100. this.Nom = nom;
  101. this.Pass = pass;
  102. }
  103.  
  104.  
  105.  
  106. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement