Exemplo n.º 1
0
        public Form1()
        {
            InitializeComponent();

            AwaitInterface.getCitiesAsync(client, comboBox2);

            //comboBox2.Items.AddRange(client.getCities().ToArray());
        }
Exemplo n.º 2
0
        private void comboBox2_SelectedIndexChanged(object sender, EventArgs e)
        {
            comboBox1.Items.Clear();
            comboBox1.Text = "";
            label2.Text    = "";

            AwaitInterface.getStationsAsync(client, comboBox2.SelectedItem.ToString(), comboBox1);

            //comboBox1.Items.AddRange(client.getStations(comboBox2.SelectedItem.ToString()));
        }
Exemplo n.º 3
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (!comboBox1.Text.Equals(""))
            {
                int time;
                if (textBox1.Text.Equals(""))
                {
                    time = 0;
                }
                else
                {
                    time = Convert.ToInt32(textBox1.Text);
                }

                AwaitInterface.getAvailableBikesAsync(client, comboBox2.Text, comboBox1.Text, time, label2);

                //label2.Text = client.getAvailableBikes(comboBox2.Text, comboBox1.Text, time).ToString();
            }
        }