private void btnGoiMon_Click(object sender, EventArgs e) { uctMonDaGoi uctMDG = new uctMonDaGoi(); uctGoiMon_Load(sender, e); nhung(uctMDG); }
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À " + lblTongTien.Text, "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); tinhtien(); uctMonDaGoi uctMDG = new uctMonDaGoi(); nhung(uctMDG); string Idban = lvDanhSachBan.SelectedItems[0].SubItems[1].Text; dvgGoiMon.DataSource = Controllers.GoiMonCtrl.DeleteGoiMon(Idban); uctGoiMon_Load(sender, e); } else { return; } } catch (Exception) { MessageBox.Show("Bạn chưa chọn bàn thanh toán", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information); uctGoiMon_Load(sender, e); } }