Example #1
0
        private void LoadCBBLoaiHangHoa()
        {
            LoaiService loaiService = new LoaiService();

            cbbLoaiHangHoa.DataSource    = loaiService.GetAll();
            cbbLoaiHangHoa.DisplayMember = "TenLoai";
            cbbLoaiHangHoa.ValueMember   = "MaLoai";
        }
Example #2
0
        private void LoadCbbLoaiHangHoa()
        {
            LoaiService loaiService = new LoaiService();
            List <Loai> lLoai       = loaiService.GetAll();

            lLoai.Add(new Loai()
            {
                MaLoai  = 0,
                TenLoai = "Chọn Loại Hàng Hóa"
            });
            cbbLoaiHangHoa.DataSource    = lLoai;
            cbbLoaiHangHoa.DisplayMember = "TenLoai";
            cbbLoaiHangHoa.ValueMember   = "MaLoai";
            cbbLoaiHangHoa.SelectedValue = 0;
        }
Example #3
0
        private void LoadDGVLoaiHangHoa()
        {
            LoaiService loaiService = new LoaiService();

            dgvLoaiHangHoa.DataSource = loaiService.GetAll();
        }