Пример #1
0
 private void btn_thanhtoan_Click(object sender, EventArgs e)
 {
     try
     {
         DAOHoaDon a = new DAOHoaDon();
         a.ThanhToan(Globals.Mahoadon);
         MessageBox.Show("Thanh toan thanh cong");
         //update trang thai ban
         DAOTable tb = new DAOTable();
         tb.UpdatetableStatus(Globals.Maban, 1);
     }
     catch
     {
     }
 }