public static async Task getAvailableBikesAsync(ServiceVelibClient client, string city, string station, int delay, Label l) { int res = await client.getAvailableBikesAsync(city, station, delay); l.Text = res.ToString(); }
public static async Task getStationsAsync(ServiceVelibClient client, string city, ComboBox c) { string[] res = await client.getStationsAsync(city); c.Items.AddRange(res); }
public static async Task getTownsAsync(ServiceVelibClient client, System.Windows.Forms.ComboBox cb2) { //comme j'avais un probleme de cast avec un retun le plus facile été de modifier directement la combobox dans cette fonction cb2.Items.AddRange(await client.getTownsAsync()); }
public static async Task getCitiesAsync(ServiceVelibClient client, ComboBox c) { string[] res = await client.getCitiesAsync(); c.Items.AddRange(res); }
public static async Task getAvailableBikesAsync(ServiceVelibClient client, string town, string station, int seconds, System.Windows.Forms.TextBox tb1) { //comme j'avais un probleme de cast avec un retun le plus facile été de modifier directement la combobox dans cette fonction tb1.Text = (await client.getAvailableBikesAsync(town, station, seconds)).ToString(); }