Exemplo n.º 1
0
        public NugetDetailsViewModel(IPackageSearchMetadata metadata)
        {
            _metadata   = metadata;
            _defaultUrl = new Uri("https://git.io/fAlfh");
            var startInfo = new ProcessStartInfo(ProjectUrl.ToString())
            {
                UseShellExecute = false
            };

            OpenPage = ReactiveCommand.Create(() => { Process.Start(startInfo); });
        }
 public NugetDetailsViewModel(NugetPackageDto dto)
 {
     _dto        = dto;
     _defaultUrl = new Uri("https://git.io/fAlfh");
     OpenPage    = ReactiveCommand.Create(() =>
     {
         Process.Start(new ProcessStartInfo(ProjectUrl.ToString())
         {
             UseShellExecute = true
         });
     });
 }
Exemplo n.º 3
0
        public SimplePackageMetadata(IPackageSearchMetadata packageSearchMetadata)
        {
            Title      = packageSearchMetadata.Title;
            Authors    = packageSearchMetadata.Authors;
            Tags       = packageSearchMetadata.Tags;
            Summary    = packageSearchMetadata.Summary;
            IconUrl    = packageSearchMetadata.IconUrl;
            ProjectUrl = packageSearchMetadata.ProjectUrl;

            if (ProjectUrl != null)
            {
                var match = Regex.Match(ProjectUrl.ToString(), GithubWrapper.RGX_GITHUB_REPO);
                if (match.Success)
                {
                    HasGithub = true;
                    GithubUrl = match.Value;
                }
            }
        }
 public GameDetailsViewModel(GameModel game)
 {
     OpenPage = ReactiveCommand.Create(() => { Process.Start(ProjectUrl.ToString()); });
     _game    = game;
 }
 public NugetDetailsViewModel(IPackageSearchMetadata metadata)
 {
     _metadata   = metadata;
     _defaultUrl = new Uri("https://git.io/fAlfh");
     OpenPage    = ReactiveCommand.Create(() => { Process.Start(ProjectUrl.ToString()); });
 }