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