private void Search() { _projectDataContext = new ProjectDataContext(); _partNumberRepository = new PartNumberRepository(_projectDataContext); dgvDuLieu.DataSource = _partNumberRepository.GetAll().OrderBy(_ => _.PartNo); Control(); }
private void LoadPartNumberData() { cbbPartNumber.DataSource = _partNumberRepository.GetAll().OrderBy(_ => _.PartNo).ToList(); cbbPartNumber.SelectedIndex = 0; }