コード例 #1
0
        private void buttonDeleteMecanic_Click(object sender, EventArgs e)
        {
            foreach (DataGridViewRow row in dataGridViewDisplayMechanics.SelectedRows)
            {
                int id = Convert.ToInt32(row.Cells[0].Value);
                _carService.DeleteMecanic(id);
            }

            // reload to view changes
            FormDisplayDetails_Load(sender, e);
        }
コード例 #2
0
 public void DeleteMecanic(int id)
 {
     _api.DeleteMecanic(id);
 }