private void button1_Click(object sender, EventArgs e) { showListView(); uctMonGoi uctMG2 = new uctMonGoi(); nhung(uctMG2); }
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 { } }
private void bntGoiMon_Click(object sender, EventArgs e) { uctMonGoi uctMG = new uctMonGoi(); nhung(uctMG); }