Ejemplo n.º 1
0
Archivo: Form1.cs Proyecto: AtanasK/VP
 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();
            }
        }