Example #1
0
 public frmDatTruoc()
 {
     tieuDeBUL        = new TieuDeBUL();
     phieuDatTruocBUL = new PhieuDatTruocBUL();
     khachHangBUL     = new KhachHangBUL();
     dVDBUL           = new DVDBUL();
     InitializeComponent();
     dgv_dstieude.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
     dgv_dskhdat.SelectionMode  = DataGridViewSelectionMode.FullRowSelect;
 }
        private void BaoCaoTieuDe_Load(object sender, EventArgs e)
        {
            tdbul = new TieuDeBUL();
            tlbul = new TheLoaiBUL();
            pdt   = new PhieuDatTruocBUL();
            ptt   = new PhieuThueTraBUL();
            dvd   = new DVDBUL();

            treeView1.Nodes.Clear();
            foreach (eTheLoai td in tlbul.getTheLoais())
            {
                TreeNode n = new TreeNode(td.tenTheLoai);
                n.Tag = td.id_TheLoai;
                treeView1.Nodes.Add(n);
            }
        }
Example #3
0
        public frmDatTruoc()
        {
            tieuDeBUL        = new TieuDeBUL();
            phieuDatTruocBUL = new PhieuDatTruocBUL();
            khachHangBUL     = new KhachHangBUL();
            dVDBUL           = new DVDBUL();
            InitializeComponent();
            dgv_dstieude.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
            dgv_dskhdat.SelectionMode  = DataGridViewSelectionMode.FullRowSelect;

            contextMenu       = new ContextMenuStrip();
            contextMenu.Width = 500;
            contextMenu.Items.Add("Xóa", Image.FromFile(@"../../Image/xoa.JPG"), new EventHandler(Xoa_Click));
            // contextMenu.Items.Add("Cập nhật", Image.FromFile(@"../../Image/Huy.JPG "), new EventHandler(CapNhat_Click));

            this.ContextMenuStrip = contextMenu;
        }