Ejemplo n.º 1
0
		protected Element CreateElement(RepositoryDetailedModel repo)
        {
            var description = ViewModel.ShowRepositoryDescription ? repo.Description : string.Empty;
			var sse = new RepositoryElement(repo.Name, repo.FollowersCount, repo.ForkCount, description, repo.Owner, new Uri(repo.LargeLogo(64))) { ShowOwner = ViewModel.ShowRepositoryOwner };
            sse.Tapped += () => ViewModel.GoToRepositoryCommand.Execute(repo);
            return sse;
        }
 protected Element CreateElement(RepositoryDetailedModel repo)
 {
     var description = Application.Account.HideRepositoryDescriptionInList ? string.Empty : repo.Description;
     var sse = new RepositoryElement(repo.Name, repo.FollowersCount, repo.ForkCount, description, repo.Owner, new Uri(repo.LargeLogo(64))) { ShowOwner = ShowOwner };
     sse.Tapped += () => NavigationController.PushViewController(new RepositoryInfoController(repo), true);
     return sse;
 }