Exemplo n.º 1
0
        private void button6_Click(object sender, EventArgs e)
        {
            BusCart busCart = new BusCart(Bus.buss.ElementAt(listBox3.SelectedIndex));

            busCart.Show();
            busCart.FormClosing += (object sender1, FormClosingEventArgs e1) => RefreshCells();
        }
Exemplo n.º 2
0
        private void button4_Click(object sender, EventArgs e)
        {
            Bus newBus = new Bus();

            Bus.buss.Add(newBus);
            BusCart busCart = new BusCart(newBus);

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