public static IList <Conference> GetConferencesList() { string acctId = getAcctId(); string apiKey = getApiKey(); IList <Conference> conferences = new List <Conference>(); FreeClimbClient client = new FreeClimbClient(acctId, apiKey); // you can pass an option ConferenceSearchFilters class to the getConferences method to filter by certain criteria (e.g. alias, create date) ConferenceList conferenceList = client.getConferencesRequester.getConferences(); if (conferenceList.getTotalSize > 0) { // Retrieve all pages of results while (conferenceList.getLocalSize < conferenceList.getTotalSize) { conferenceList.loadNextPage(); } foreach (IFreeClimbCommon item in conferenceList.export()) { Conference conf = item as Conference; // do whatever you need to do with conferene object which contains all the conference properties conferences.Add(conf); } } return(conferences); }
private async Task FillConferenceList() { ConferenceList.ClearValue(ItemsControl.ItemsSourceProperty); await core.LoadConferencesAsync(); ConferenceList.DisplayMemberPath = "ConferenceDesc"; ConferenceList.SelectedValuePath = "ConferenceId"; ConferenceList.ItemsSource = UserCredentials.Conferences; }
private void LoadDivisionList(string yearIn) { //Utility.Announce( string.Format( "LoadDivisionList: Loading {0} division List...", yearIn ) ); var nfc = new NflConference("NFC", yearIn); ConferenceList.Add(nfc); LoadNfc(nfc); var afc = new NflConference("AFC", yearIn); ConferenceList.Add(afc); LoadAfc(afc); }
private void LoadDivisionList(string yearIn) { Logger.Trace($"LoadDivisionList: Loading {yearIn} division List..."); var nfc = new NflConference("NFC", yearIn); ConferenceList.Add(nfc); LoadNfc(nfc); var afc = new NflConference("AFC", yearIn); ConferenceList.Add(afc); LoadAfc(afc); }
static void Main(string[] args) { Messaging.EventBus myBus = null; IDisposable addConferenceSub = null; IDisposable newRegistrationSub = null; IDisposable cancelRegistrationSub = null; try { myBus = new Messaging.EventBus(); addConferenceSub = myBus.Subscribe <AddConferenceEvent>("AddConference", async x => { await ConferenceDetail.Handle(x); await ConferenceList.Handle(x); }); newRegistrationSub = myBus.Subscribe <NewRegistrationEvent>("NewRegistration", async x => { await ConferenceDetail.Handle(x); await AttendeeList.Handle(x); }); cancelRegistrationSub = myBus.Subscribe <CancelRegistrationEvent>("CancelRegistration", async x => { await ConferenceDetail.Handle(x); await AttendeeList.Handle(x); }); while (Console.ReadLine() != "quit") { Thread.Sleep(int.MaxValue); } } catch (Exception ex) { Console.WriteLine("Event-Handler"); Console.WriteLine(ex); } finally { addConferenceSub?.Dispose(); newRegistrationSub?.Dispose(); cancelRegistrationSub?.Dispose(); myBus?.Dispose(); } }