private async void btnTestJurisdictions_Click(object sender, EventArgs e) { OpenStateClientLib.OpenStateClient cli; cli = new OpenStateClientLib.OpenStateClient(); var resultsJ = await cli.GetJurisdictionsAsync(); string s = resultsJ.Data.ToString(); // MessageBox.Show(s, "Jurisdictions"); rtbResults.Clear(); rtbResults.AppendText(s); }
private async void btnShowTexasHouseLegislators_Click(object sender, EventArgs e) { OpenStateClientLib.OpenStateClient cli; cli = new OpenStateClientLib.OpenStateClient(); var resultsJ = await cli.GetJurisdictionsAsync(); Newtonsoft.Json.Linq.JArray array = resultsJ.Data.jurisdictions.edges; string TexasOrgName = cli.FindJurisdictionId(array, "Texas"); var resultsT = await cli.GetStateLegesAsync("Texas"); string TexasHouseLegeID = "ocd-organization/d6189dbb-417e-429e-ae4b-2ee6747eddc0"; var ResultsP = await cli.GetPeopleByOrgIDAllAsync(TexasHouseLegeID, "", ExtraGuiAction); SetPeopleListBox(lbHouseLegislators, ResultsP); }
private async void btnShowTexasSenateLegislators_Click(object sender, EventArgs e) { OpenStateClientLib.OpenStateClient cli; cli = new OpenStateClientLib.OpenStateClient(); var resultsJ = await cli.GetJurisdictionsAsync(); Newtonsoft.Json.Linq.JArray array = resultsJ.Data.jurisdictions.edges; string TexasOrgName = cli.FindJurisdictionId(array, "Texas"); var resultsT = await cli.GetStateLegesAsync("Texas"); string TexasSenateLegeID = "ocd-organization/cabf1716-c572-406a-bfdd-1917c11ac629"; var ResultsP = await cli.GetPeopleByOrgIDAllAsync(TexasSenateLegeID, "", ExtraGuiAction); SetPeopleListBox(lbSenateLegislators, ResultsP); }