Exemple #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            isUpdate = false;
            var c = new AddOrUpdateCar(isUpdate);

            c.Show();
        }
Exemple #2
0
        private void btnUpdate_Click(object sender, EventArgs e)
        {
            var indices = lvCarList.SelectedItems.Count;

            if (indices < 1)
            {
                return;
            }

            UpdateCarDto car = CarManager.GetItems();

            isUpdate = true;
            var updateCar = new AddOrUpdateCar(car, isUpdate, Convert.ToInt32(lvCarList.SelectedItems[0].SubItems[0].Text));

            updateCar.Show();
        }