private void openMatch(CompetitionClass competition) { MainThread.BeginInvokeOnMainThread(async() => { // Code to run on the main threat await Navigation.PushAsync(new MatchList(competition)).ConfigureAwait(false); }); }
private void DeleteCompetition(object sender, EventArgs e) { MenuItem delete = sender as MenuItem; CompetitionClass comp = delete.CommandParameter as CompetitionClass; eventsListObj.Remove(comp); CacheData.DeleteOneEvent(comp); eventsNotLocal.Add(comp.eventKey); }
private void matchEvents_ItemTapped(object sender, ItemTappedEventArgs e) { if (!isOpening) { isOpening = true; CompetitionClass matchEventItem = e.Item as CompetitionClass; openMatch(matchEventItem); } }