private void CreateNew_Clicked(object sender, EventArgs e) { if (!isOpening) { isOpening = true; lastSelect = selectID; lastMatch = matchNumber + 1; scoutEvents pg = new scoutEvents(comp.matchesList[matchNumber - 1], selectID); pg.Title = DataConstants.alliancePosition[selectID]; Navigation.PushAsync(pg); Navigation.RemovePage(this); } }
private void openInfo_Clicked(object sender, EventArgs e) { if (!isOpening) { isOpening = true; scoutEvents pg; if (thisMatch.TeamsScouted[selectID] == null) { pg = new scoutEvents(thisMatch, selectID); } else { pg = new scoutEvents(thisMatch.TeamsScouted[selectID]); } pg.Title = DataConstants.alliancePosition[selectID]; Navigation.PushAsync(pg); Navigation.RemovePage(this); } }