private void buttonUpdateChassis_Click(object sender, EventArgs e)
        {
            foreach (DataGridViewRow row in dataGridViewDisplayChassis.SelectedRows)
            {
                int   id      = Convert.ToInt32(row.Cells[0].Value);
                Sasiu chassis = _carService.FindChassisById(id);

                chassis.CodSasiu = row.Cells[1].Value.ToString();
                chassis.Denumire = row.Cells[2].Value.ToString();
                _carService.UpdateChassis(chassis);
            }

            // reload to view changes
            FormDisplayChassis_Load(sender, e);
        }
Beispiel #2
0
 public void UpdateChassis(Sasiu chassis)
 {
     _api.UpdateChassis(chassis);
 }