|
|
|
@ -1,9 +1,4 @@
|
|
|
|
|
using Microsoft.Maui.Controls;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using ClientMAUI.Views.Pages;
|
|
|
|
|
using System.Windows.Input;
|
|
|
|
|
using VM;
|
|
|
|
|
|
|
|
|
@ -13,10 +8,19 @@ namespace ClientMAUI.VMApp
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public DataManagerVM DataManagerVM { get; private set; }
|
|
|
|
|
public ICommand ItemTappedCommand { get; private set; }
|
|
|
|
|
private INavigation _navigation;
|
|
|
|
|
|
|
|
|
|
public ChampionListPageVM(DataManagerVM dataManager)
|
|
|
|
|
public ChampionListPageVM(DataManagerVM dataManager, INavigation navigaton)
|
|
|
|
|
{
|
|
|
|
|
DataManagerVM = dataManager;
|
|
|
|
|
_navigation = navigaton;
|
|
|
|
|
|
|
|
|
|
ItemTappedCommand = new Command(
|
|
|
|
|
async (object item) =>
|
|
|
|
|
{
|
|
|
|
|
await _navigation.PushAsync(new ChampionDetail(item as ChampionVM));
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|