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

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