You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
947 B

using League_of_legendes2.ViewModel;
using VeiwModel;
namespace League_of_legendes2;
public partial class MainPage : ContentPage
{
public MainVM mainVM { get; set; }
//readonly StubData MyStub = new();
public ManagerVM managerVM { get; private set; }
public MainPage(ManagerVM managerVM)
{
this.managerVM = managerVM;
InitializeComponent();
BindingContext = this;
}
public async void OnChampSelection(object sender, ItemTappedEventArgs args)
{
ChapionVM x = args.Item as ChapionVM;
managerVM.SelctedChampVM = args.Item as ChapionVM;
Console.Write("hello");
//mainVM.OnChampSelection(x);
// mainVM.GoDetail.Execute();
await Navigation.PushAsync(new Pages.Details(x));
}
//public async void goTOUpdate(object sender, System.EventArgs e)
//{
// await Navigation.PushAsync(new Pages.ChampForm());
//}
}