Пример #1
0
 private void btnAddDestination_Click(object sender, EventArgs e)
 {
     AddLine form = new AddLine();
     if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         Bus airport = lbBussues.SelectedItem as Bus;
         airport.AddDestination(form.Line);
         loadLines();
     }
 }
        private void btnAddDestination_Click(object sender, EventArgs e)
        {
            AddLine form = new AddLine();

            if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                Bus airport = lbBussues.SelectedItem as Bus;
                airport.AddDestination(form.Line);
                loadLines();
            }
        }