private void LoadSearch(bool _loai, bool _tacgia, bool _nxb) { var loaisach = new LoaiSachBLL(); var tacgia = new TacGiaBLL(); var nxb = new NXBBLL(); if (_loai) loaiSachS.ItemsSource = loaisach.GetAll(); if (_tacgia) tacGiaS.ItemsSource = tacgia.GetAll(); if (_nxb) nXBS.ItemsSource = nxb.GetAll(); }
private void LoadComboBox(bool _loai, bool _tacgia, bool _nxb) { var loaisach = new LoaiSachBLL(); var tacgia = new TacGiaBLL(); var nxb = new NXBBLL(); if(_loai) loaiSachComboBox.ItemsSource = loaisach.GetAll(); if (_tacgia) tacGiaComboBox.ItemsSource = tacgia.GetAll(); if (_nxb) nXBComboBox.ItemsSource = nxb.GetAll(); }