private void comboBox2_SelectedIndexChanged(object sender, EventArgs e) { comboBox1.Items.Clear(); comboBox1.ResetText(); if (comboBox2.Text != "") { IntermediateAsync.getStationsAsync(client, comboBox2.Text, comboBox1); } }
private void button1_Click(object sender, EventArgs e) { int seconds = 0; if (comboBox2.Text != "" && comboBox1.Text != "") { if (textBox2.Text != "") { seconds = Convert.ToInt32(textBox2.Text); } IntermediateAsync.getAvailableBikesAsync(client, comboBox2.Text, comboBox1.Text, seconds, textBox1); } }
public Form1() { InitializeComponent(); IntermediateAsync.getTownsAsync(client, comboBox2); }