private void AddPageViewModel(ChildParentViewModel childParentViewModel)
 {
     PageViewModels.RemoveAll(f => f is ChildParentViewModel);
     if (!PageViewModels.Contains(childParentViewModel))
     {
         DataAccessLayer.GenericDataAccessLayer <MasterEntities.FizickoLice> dal = new DataAccessLayer.GenericDataAccessLayer <MasterEntities.FizickoLice>();
         List <MasterEntities.FizickoLice> flList = dal.GetAll().ToList();
         PageViewModels.Add(new ChildParentViewModel(flList, this.CurrentRecursiveType));
     }
 }
示例#2
0
 public override void RefreshCollectionOnPage()
 {
     GenericDataAccessLayer <FizickoLice> dal = new GenericDataAccessLayer <FizickoLice>();
     List <FizickoLice>   flList        = dal.GetAll().ToList();
     ChildParentViewModel testViewModel = new ChildParentViewModel(flList);
 }