void updateDogCollection() { dogCollection = new List <Dog>(); switch (browserMode) { case DogBrowserType.AdoptedDogs: List <DogDescriptor> dogInfos = dataController.AdoptedDogs; DogFactory dogFactory = new DogFactory(hideGameObjects: true); dogCollection = dogFactory.CreateGroupList(dogInfos); buttonController.RefreshPages(); break; } }
void updateDogList(DogDescriptor[] dogInfos) { DogFactory dogFactory = new DogFactory(hideGameObjects: true); dogsList = dogFactory.CreateGroupList(new List <DogDescriptor>(dogInfos)); }