public RepositoryViewModel(RepositoryListDto repository, Func<SourcefileDto, SourcefileViewModel> sourcefileFactory) { _repository = repository; _sourcefileFactory = sourcefileFactory; _sourcefiles = new ObservableCollection<SourcefileViewModel>(); InitializeSourcefiles(); }
public RepositoryViewModel(RepositoryListDto repository, Func <SourcefileDto, SourcefileViewModel> sourcefileFactory) { _repository = repository; _sourcefileFactory = sourcefileFactory; _sourcefiles = new ObservableCollection <SourcefileViewModel>(); InitializeSourcefiles(); }
void Import() { Guid importedRepositoryId = Guid.NewGuid(); _commandSender.Send(new ImportRepository(importedRepositoryId, Repository, new Credentials(new Username(User), new ApiToken(ApiToken)))); RepositoryListDto importedRepository = _readModel.GetRepositoryListById(importedRepositoryId); RepositoryImported(this, new RepositoryImportedEventArgs(importedRepository)); }
public RepositoryImportedEventArgs(RepositoryListDto importedRepository) { _importedRepository = importedRepository; }
public void AddRepositoryList(RepositoryListDto repositoryList) { _repositoryLists.Add(repositoryList); }