private async void EditLottery(Lottery lottery)
        {
            SelectCurrentLotteryItem(lottery);

            _lotteryPage       = new LotteryPage(lottery, editMode: true);
            _lotteryPage.Title = "Edit Lottery";
            //so that the duplicate name is not an issue when we load it.
            _lotteryPage.LotteryViewModel.LotteryNameError = false;

            await NavigationManager.PushAsyncPage(Navigation, _lotteryPage);
        }
 private async void NewLotteryToolBarItem_Clicked(object sender, EventArgs e)
 {
     _lotteryPage = new LotteryPage(new Lottery(), false);
     await NavigationManager.PushAsyncPage(Navigation, _lotteryPage);
 }