|
|
|
@ -1,10 +1,16 @@
|
|
|
|
|
using LivreLand.Model;
|
|
|
|
|
using LivreLand.ViewModel;
|
|
|
|
|
|
|
|
|
|
namespace LivreLand.View;
|
|
|
|
|
|
|
|
|
|
public partial class TousView : ContentPage
|
|
|
|
|
{
|
|
|
|
|
public List<BookModel> DamasioBooks { get; set; } = new List<BookModel>()
|
|
|
|
|
|
|
|
|
|
#region Properties
|
|
|
|
|
|
|
|
|
|
public NavigatorVM Navigator { get; private set; }
|
|
|
|
|
|
|
|
|
|
public List<BookModel> DamasioBooks { get; set; } = new List<BookModel>()
|
|
|
|
|
{
|
|
|
|
|
new BookModel("La horde du contrevent","Alain Damasio","Non lu", 0),
|
|
|
|
|
new BookModel("La zone du dehors","Alain Damasio","Terminé", 0),
|
|
|
|
@ -17,14 +23,25 @@ public partial class TousView : ContentPage
|
|
|
|
|
new BookModel("Le problème à trois corps","Cixin Liu","Terminé", 0)
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
public TousView()
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Constructor
|
|
|
|
|
|
|
|
|
|
public TousView(NavigatorVM navigatorVM)
|
|
|
|
|
{
|
|
|
|
|
BindingContext = this;
|
|
|
|
|
Navigator = navigatorVM;
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
}
|
|
|
|
|
BindingContext = this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
void OnSelectionChanged(object sender, SelectionChangedEventArgs e)
|
|
|
|
|
#region Methods
|
|
|
|
|
|
|
|
|
|
void OnSelectionChanged(object sender, SelectionChangedEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
App.Current.MainPage.Navigation.PushAsync(new DetailsLivreView());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
}
|