Exemplo n.º 1
0
        private void ButtonCreate_Click(object sender, EventArgs e)
        {
            CarDetails carDetails = new CarDetails();

            carDetails.ShowDialog();

            UpdateCars();
            UpdateListView();
        }
Exemplo n.º 2
0
        private void Edit_Click(object sender, EventArgs e)
        {
            ListView.SelectedIndexCollection indices = ListViewCar.SelectedIndices;
            CarModel car = cars[indices[0]];

            CarDetails carDetails = new CarDetails(car);

            carDetails.ShowDialog();

            UpdateCars();
            UpdateListView();
        }