private void btnUpdate_Click(object sender, System.EventArgs e) { try { ci.AddCar(txtMake.Text, txtColor.Text, Int32.Parse(txtID.Text)); UpdateGrid(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void btnUpdate_Click(object sender, System.EventArgs e) { ci.AddCar(txtMake.Text, txtColor.Text, Int32.Parse(txtID.Text)); UpdateGrid(); }