예제 #1
0
        async void backClicked(object sender, System.EventArgs e)
        {
            var text = await DisplayAlert("Alert", "Do you want to discard progress?", "Yes", "No");

            if (text)
            {
                NewMatchStart.isTimerRunning = false;
                s.setEventButtons(true);
                s.setSlider(0);
                MatchParameters.clearMatchItems();
                Children.Remove(s);
                Navigation.PopAsync();
            }
        }
        async void backClicked(object sender, System.EventArgs e)
        {
            var text = await DisplayAlert("Alert", "Do you want to discard progress?", "Yes", "No");

            if (text)
            {
                MatchParameters.clearMatchItems();
                if (Matches.appRestore == false)
                {
                    Matches.appRestore = false;
                    Navigation.PopToRootAsync(true);
                }
                else if (Matches.appRestore == true)
                {
                    Matches.appRestore = false;
                    Navigation.PopAsync(true);
                }
            }
        }