コード例 #1
0
        public Form1()
        {
            InitializeComponent();
            client = new IntermediaryService.Service1Client();

            currentCity    = null;
            currentStation = null;

            SetCitiesAsync();
        }
コード例 #2
0
        private void buttonReset_Click(object sender, EventArgs e)
        {
            Cursor.Current = Cursors.WaitCursor;
            client         = new IntermediaryService.Service1Client();

            string[] cities = client.GetCities();

            currentCity    = null;
            currentStation = null;

            textBox.Multiline = true;
            textBox.Clear();

            comboBoxCity.Text    = "";
            comboBoxStation.Text = "";

            comboBoxCity.Items.Clear();
            comboBoxStation.Items.Clear();

            SetCitiesAsync();

            Cursor.Current = Cursors.Default;
        }