Exemple #1
0
        private void btnAddVehicle_Click(object sender, EventArgs e)
        {
            frmAddVehicle toOpen = new frmAddVehicle(_vehicleService);

            toOpen.ShowDialog();
            UpdateGrid();
        }
Exemple #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            var obj = dataGridView1.SelectedRows[0].DataBoundItem as Vehicle;

            frmAddVehicle toOpen = new frmAddVehicle(_vehicleService, obj);

            toOpen.ShowDialog();
            UpdateGrid();
        }