private void btnGiveBack_Click(object sender, EventArgs e) { if (dataGridView1.CurrentRow.Index > 0) { Form_ThanhToan.item = new List <string>(); Form_ThanhToan.item.Add(dataGridView1.Rows[dataGridView1.CurrentRow.Index].Cells[0].Value.ToString()); Form_ThanhToan.item.Add(dataGridView1.Rows[dataGridView1.CurrentRow.Index].Cells[2].Value.ToString()); Form_ThanhToan.item.Add(dataGridView1.Rows[dataGridView1.CurrentRow.Index].Cells[4].Value.ToString()); Form_ThanhToan frm_pay = new Form_ThanhToan(); frm_pay.ShowDialog(); } }
private void btnThanhToan_Click(object sender, EventArgs e) { //Form_ThanhToan form_ThanhToan = new Form_ThanhToan(maHoaDon); //form_ThanhToan.Show(); //this.Hide(); ca.setFlag(1); ca.setMaBan(maB); Form_ThanhToan frm = new Form_ThanhToan(); this.Dispose(); frm.Show(); }
private void btn_TinhTien_Click(object sender, EventArgs e) { if (ca.getFlag() == 0 && ca.getCart().Count == 0) { MessageBox.Show("Moi Chon San Pham"); return; } Form_ThanhToan frm = new Form_ThanhToan(); this.Dispose(); frm.Show(); }