Пример #1
0
        private void button7_Click(object sender, EventArgs e)
        {
            DriverCart driverCart = new DriverCart(Driver.drivers.ElementAt(listBox2.SelectedIndex));

            driverCart.Show();
            driverCart.FormClosing += (object sender1, FormClosingEventArgs e1) => RefreshCells();
        }
Пример #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            Driver newDriver = new Driver();

            Driver.drivers.Add(newDriver);
            DriverCart driverCart = new DriverCart(newDriver);

            driverCart.Show();
            driverCart.FormClosing += (object sender1, FormClosingEventArgs e1) => RefreshCells();
        }