コード例 #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();
        }
コード例 #2
0
        private void metroTile1_Click(object sender, EventArgs e)
        {
            hinhBan5 form = new hinhBan5(tenNhanvien);

            form.Show();
        }