//        public delegate HangHoaDTO GetHangHoa(GridControl grd);



        // đúp chuột hiện bảng chọn hàng hóa

        private void GridView2_DoubleClick(object sender, EventArgs e)
        {
            // hiển thị form chọn sản phẩm
            ChucNang_ChonHang frm = new ChucNang_ChonHang();

            frm.ShowDialog();

            //GetHangHoa layhang = new GetHangHoa(frm.);
        }
        //private void LoadCotTenHangHoa()
        //{
        //    repositoryItemLookUpEdit1.DataSource = HangHoaBUS.LayToanBoLoaiHang();
        //    repositoryItemLookUpEdit1.DisplayMember = "TenLoaiHH";
        //    repositoryItemLookUpEdit1.ValueMember = "MaLoaiHH";
        //}

        //private void GridControl2_Load(object sender, EventArgs e)
        //{
        //    // load hàng hóa cho lookupedit
        //    LoadGridHangHoa();
        //}

        //private void LoadGridHangHoa()
        //{
        //    repositoryItemLookUpEdit1.DataSource = HangHoaBUS.LayToanBoHangHoa();
        //    repositoryItemLookUpEdit1.DisplayMember = "TenHangHoa";
        //    repositoryItemLookUpEdit1.ValueMember = "MaHangHoa";

        //}

        private void btnLuu_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            ChucNang_ChonHang frm = new ChucNang_ChonHang();

            frm.ShowDialog();


            //ChucNang_ChonHangHoa frm = new ChucNang_ChonHangHoa();
            //frm.ShowDialog();
        }