public async void LoadEvents() { bool internetConnection = await API.checkForInternetConnection(); if (internetConnection) { eventList = await API.getEvents(pref.GetString("PrefEmailUser", ""), pref.GetString("PrefPasswordUser", "")); list.Clear(); foreach (Event ev in eventList) { Event_class e = new Event_class(ev.EventName, ev.Datee + " " + ev.Hourr, ev.GameID); //Event_class e = new Event_class(ev.EventName, "", ""); list.Add(e); } mAdapter = new RecyclerAdapter(list); mRecyclerView.SetAdapter(mAdapter); } }
public void Generuj_Event_class() { Event_class nowe_Event_class = new Event_class("U¿ytkownik @AdamPaluch zaprosi³ Ciê do gry.", GetString(Resource.String.not_titleTournament), 20, 15); lista_wydarzen.Add(nowe_Event_class); }
public void Generuj_Event_class() { Event_class nowe_Event_class = new Event_class("Turniej Gfinity 2016 PRO League", "Virtus.pro", "Fnatic", "28.05 20:15", "Counter-Strike: Global Offensive"); lista_wydarzen.Add(nowe_Event_class); }