public SkinDesignerViewModel(IServiceLocator serviceLocator, AvailableGameViewModelCollection existingClientGames, AvailableGameViewModelCollection allOtherGames, FilterableCollectionViewModel <ArenaFilterViewModel> availableFilters, SkinDefinitionViewModel skinDefinition, ExplorerBarViewModel explorerBar, IEnumerable <ErrorMessageViewModel> buildErrors, SkinIndentity sourceSkin, SkinIndentity destinationSkin) { serviceLocator.GetInstance <IUnityContainer>().RegisterInstance <ISkinDesigner>(this); ServiceLocator = serviceLocator; AvailableGames = existingClientGames; NewGames = allOtherGames; AvailableFilters = availableFilters; SkinDefinition = skinDefinition; ExplorerBar = explorerBar; _buildErrors = buildErrors; SourceSkin = sourceSkin; DestinationSkin = destinationSkin; CreateCommands(); InitMockupViewModel(); RegisterGlobalNotificationHandlers(); _validator = new SkinValidator(this, ServiceLocator.GetInstance <IApplicationServices>()); RegisterApplicationExitHandler(); }
public void Setup() { InitTheList(); collectionViewModel = new FilterableCollectionViewModel <TestItem>(_theList); }