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); } }
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(); }
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(); }