using GreadyPoang.CommandClasses;
using GreadyPoang.Views;

namespace GreadyPoang.Pages;

public class ParticipantListPage : BasePage
{
    private readonly ParticipantViewModelCommands _vm;

    public ParticipantListPage(ParticipantViewModelCommands vm, SplashViewModelCommands splashVm)
        : base(new ParticipantListView(vm), splashVm)
    {
        Title = "Deltagar Lista";
        _vm = vm;
    }

    protected override void OnAppearing()
    {
        base.OnAppearing();
        BindingContext = _vm;
        _vm.Get();
    }

}
