public MatchPage(MatchSettings ms, object cs) { InitializeComponent(); checkoutList = cs as List <Checkout>; matchSettings = ms; player1 = new Player(matchSettings.p1Name); player2 = new Player(matchSettings.p2Name); UpdateUI(); UISetup(); SetupCheckouts(); }
//Pushed to the match page if all the entry boxes are filled private async void StartBtn_Clicked(object sender, EventArgs e) { if ((testStartScore.Text == "301" || testStartScore.Text == "501" || testStartScore.Text == "701") && player1.Text != null && player2.Text != null && setNumber.Text != null) { MatchSettings ms = new MatchSettings(player1.Text, player2.Text, testStartScore.Text, setNumber.Text); await Navigation.PushAsync(new MatchPage(ms, checkouts)); } else { DisplayAlert("ERROR", "Please Enter all Values", "OK"); } }