public BranchViewModel()
 {
     _repository            = new BranchRepo();
     branches               = new DataView();
     branches.Table         = _repository.dataSet.Tables[0].DefaultView.Table.Copy();
     this.PropertyChanged  += BranchesViewModel_PropertyChanged;
     FilteredBranches       = new DataView();
     FilteredBranches.Table = branches.Table.Copy();
 }
Example #2
0
 public BranchManager()
 {
     _branchRepo  = new BranchRepo();
     _companyRepo = new CompanyRepo();
 }
 public BranchMasterViewModel()
 {
     _branchRepository = new BranchRepo();
     Branches          = new List <Branch>(_branchRepository.findAll());
     _branchRepository.populate(Branches);
 }