예제 #1
0
파일: Form1.cs 프로젝트: candy06/socws1
        private void button3_Click(object sender, EventArgs e)
        {
            string city    = (string)citiesList.SelectedItem;
            string station = (string)stationsList.SelectedItem;

            Stopwatch stopwatch      = Stopwatch.StartNew();
            int       availableBikes = client.GetAvailableBikesForStation(station, city);

            stopwatch.Stop();

            label5.Text    = "Execution time of GetAvailableBikes: " + stopwatch.ElapsedMilliseconds + "ms";
            label5.Visible = true;

            label1.Text    = "Available bikes: " + availableBikes;
            label1.Visible = true;
        }