private void changeFlyIDToolStripMenuItem_Click(object sender, EventArgs e)
        {
            InputID      form = new InputID();
            DialogResult res  = form.ShowDialog(this);

            if (res == DialogResult.OK)
            {
                int id = form.Result;
                ChangeFlightID(id);
            }
        }
示例#2
0
        private void changeFlyIDToolStripMenuItem_Click(object sender, EventArgs e)
        {
            InputID      form = new InputID();
            DialogResult res  = form.ShowDialog(this);

            if (res == DialogResult.OK)
            {
                flyID = form.Result;
            }
            ResetEverything();
            UpdateInfo();
        }
示例#3
0
        private void changeFlyIDToolStripMenuItem_Click(object sender, EventArgs e)
        {
            InputID      form = new InputID();
            DialogResult res  = form.ShowDialog(this);

            if (res == DialogResult.OK)
            {
                flyID = form.Result;
            }
            ResetEverything();
            List <String> info = GetFlightInfo(flyID);

            if (info != null && info.Count != 0)
            {
                tbFlyID.Text    = info[0];
                tbFlyName.Text  = info[1];
                tbFlyStart.Text = info[2];
            }
            ListeningInitAndStart();
            UpdateInfo();
        }