Пример #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            AddNewRide adr = new AddNewRide(rout.Transport, rout);

            adr.ShowDialog();
            updateListBox();
        }
Пример #2
0
        private void button3_Click(object sender, EventArgs e)
        {
            if (listBox1.SelectedIndex == -1)
            {
                return;
            }
            AddNewRide adr = new AddNewRide(rout.Transport, rout, listBox1.SelectedItem as RideView);

            adr.ShowDialog();
            updateListBox();
        }