private void btnOrder_Click(object sender, EventArgs e) { if (!CheckInput()) { return; } DataProvider dp = new DataProvider(); string MSDH = dp.CurrentMSDH(); int soLuong = Int32.Parse(tbSoLuong.Text); int tiLeGiam = Int32.Parse(tbTiLeGiam.Text); dp.AddCart(MSDH, MSHH, soLuong, tiLeGiam); DialogResult result = MessageBox.Show("Successful", "Notification", MessageBoxButtons.OK); if (result == DialogResult.OK) { this.Close(); } }