Esempio n. 1
0
        private void SELLECT_MENNU_FormClosed(object sender, FormClosedEventArgs e)
        {
            try
            {
                HoaDon hoadon = bus_hoaDon.layHoaDonTheoMaBan(maCuaBan);
                List <ChiTietHoaDon> chiTietHoaDo = bus_hoaDon.layChiTietHoaDon(hoadon.MaHoaDon);



                if (bus_hoaDon.layChiTietHoaDon(hoadon.MaHoaDon).Count == 0)
                {
                    bus_hoaDon.xoaHoaDon(hoadon.MaHoaDon);
                }
            }
            catch (Exception)
            {
            }

            hinhBan5 form = new hinhBan5();

            form.Show();
        }
        private void metroTile1_Click(object sender, EventArgs e)
        {
            hinhBan5 form = new hinhBan5(tenNhanvien);

            form.Show();
        }