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 getStationsAsync(ServiceVelibClient client, string city, System.Windows.Forms.ComboBox cb1) { //comme j'avais un probleme de cast avec un retun le plus facile été de modifier directement la combobox dans cette fonction cb1.Items.AddRange(await client.getStationsAsync(city)); }