|
|
@ -1,9 +1,11 @@
|
|
|
|
using PersonalMVVMToolkit;
|
|
|
|
using LivreLand.View;
|
|
|
|
|
|
|
|
using PersonalMVVMToolkit;
|
|
|
|
using System;
|
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Linq;
|
|
|
|
using System.Linq;
|
|
|
|
using System.Text;
|
|
|
|
using System.Text;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
using System.Windows.Input;
|
|
|
|
using ViewModels;
|
|
|
|
using ViewModels;
|
|
|
|
|
|
|
|
|
|
|
|
namespace LivreLand.ViewModel
|
|
|
|
namespace LivreLand.ViewModel
|
|
|
@ -16,6 +18,7 @@ namespace LivreLand.ViewModel
|
|
|
|
|
|
|
|
|
|
|
|
public ManagerVM Manager { get; private set; }
|
|
|
|
public ManagerVM Manager { get; private set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public ICommand OnSelectionChangedCommand { get; private set; }
|
|
|
|
#endregion
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
#region Constructor
|
|
|
|
#region Constructor
|
|
|
@ -24,6 +27,17 @@ namespace LivreLand.ViewModel
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Navigator = navigatorVM;
|
|
|
|
Navigator = navigatorVM;
|
|
|
|
Manager = managerVM;
|
|
|
|
Manager = managerVM;
|
|
|
|
|
|
|
|
OnSelectionChangedCommand = new RelayCommand<BookVM>((bookVM) => OnSelectionChanged(bookVM));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region Methods
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void OnSelectionChanged(BookVM bookVM)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
var result = new DetailsLivreVM(Manager, Navigator, bookVM);
|
|
|
|
|
|
|
|
App.Current.MainPage.Navigation.PushAsync(new DetailsLivreView(result));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
#endregion
|
|
|
|