Ejemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            showListView();
            uctMonGoi uctMG2 = new uctMonGoi();

            nhung(uctMG2);
        }
Ejemplo n.º 2
0
        private void btnTinhTien_Click(object sender, EventArgs e)
        {
            try
            {
                DialogResult ok = new DialogResult();
                ok = MessageBox.Show("Bạn có muốn tính tiền " + label3.Text + " không ", " Thông báo ", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
                if (ok == DialogResult.Yes)
                {
                    MessageBox.Show("Tổng số tiền thanh toán của " + "" + label3.Text + "" + " là " + lbtongtien.Text, "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);

                    uctMonGoi uctmg = new uctMonGoi();
                    nhung(uctmg);
                    string _IdBan = lvDanhSachBan.SelectedItems[0].SubItems[1].Text;
                    dgvGoiMon.DataSource = Controllers.GoiMonCtrl.DeleteGoiMon(_IdBan);
                    tinhtien();
                }
            }
            catch { }
        }
Ejemplo n.º 3
0
        private void bntGoiMon_Click(object sender, EventArgs e)
        {
            uctMonGoi uctMG = new uctMonGoi();

            nhung(uctMG);
        }