private void RemoveButton_Click(object sender, EventArgs e) { int id = (int)CarTable.CurrentRow.Cells[0].Value; carLogic.Remove(id); }