예제 #1
0
파일: Form1.cs 프로젝트: candy06/socws1
        private void button4_Click(object sender, EventArgs e)
        {
            string    station         = (string)stationsList.SelectedItem;
            string    city            = (string)citiesList.SelectedItem;
            Station   selectedStation = findSelectedStation(station);
            Stopwatch stopwatch       = Stopwatch.StartNew();
            string    informations    = client.GetInformations(selectedStation.Number, city);

            stopwatch.Stop();
            label8.Text    = "Execution time of GetInformations: " + stopwatch.ElapsedMilliseconds + "ms";
            label8.Visible = true;
            label7.Text    = informations;
        }