private void CCart_Click(object sender, EventArgs e) { int id = Convert.ToInt32(utb.CarQuantityId(model, color)); Booking bk = new Booking(utb, id); bk.Show(); }
private void button2_Click(object sender, EventArgs e) { String cqi = utb.CarQuantityId(CModel.Text, CColor.Text); if (utb.UpdateCarQuantity(Convert.ToInt32(CQuantity.Text), cqi)) { MessageBox.Show("Product Update sucessfuly"); CQuantity.Text = ""; CColor.Items.Clear(); } else { MessageBox.Show("Product can't be Update"); } }