示例#1
0
        private void btthanhtoan_Click(object sender, EventArgs e)
        {
            DialogResult res = MessageBox.Show("Bạn có chắc chắn muốn thanh toán?", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (res == DialogResult.Yes)
            {
                check_sp(ref tensphd, ref giahd);
                Form a = new hoadon(tensphd, giahd, lbtongtien.Text);
                a.Show();
                reset();
            }
        }
示例#2
0
文件: homenv.cs 项目: thevinh37/CNPM
        private void btthanhtoan_Click(object sender, EventArgs e)
        {
            DialogResult res = MessageBox.Show("Bạn có chắc chắn muốn thanh toán?", "Xác nhận thanh toán", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (res == DialogResult.Yes)
            {
                check_sp();
                Form c = new hoadon(lbtongtien.Text, StringConnect, ref a);
                c.Show();
                reset();
            }
        }