void ShowPackageInformation(PackageViewModel packageViewModel)
        {
            this.packageNameLabel.Markup   = packageViewModel.GetNameMarkup();
            this.packageVersionLabel.Text  = packageViewModel.Version.ToString();
            this.packageAuthor.Text        = packageViewModel.GetAuthors();
            this.packagePublishedDate.Text = packageViewModel.GetLastPublishedDisplayText();
            this.packageDownloads.Text     = packageViewModel.GetDownloadCountDisplayText();
            this.packageDescription.Text   = packageViewModel.Description;
            this.packageId.Text            = packageViewModel.Id;
            this.packageId.Visible         = packageViewModel.HasNoGalleryUrl;
            ShowUri(this.packageIdLink, packageViewModel.GalleryUrl, packageViewModel.Id);
            ShowUri(this.packageProjectPageLink, packageViewModel.ProjectUrl);
            ShowUri(this.packageLicenseLink, packageViewModel.LicenseUrl);
            this.packageDependenciesListHBox.Visible  = packageViewModel.HasDependencies;
            this.packageDependenciesNoneLabel.Visible = !packageViewModel.HasDependencies;
            this.packageDependenciesList.Text         = packageViewModel.GetPackageDependenciesDisplayText();

            this.packageInfoVBox.Visible = true;
        }
Exemple #2
0
        void ShowPackageInformation(PackageViewModel packageViewModel)
        {
            this.packageVersionTextBox.Text             = packageViewModel.Version.ToString();
            this.packageCreatedByTextBox.Text           = packageViewModel.GetAuthors();
            this.packageLastUpdatedTextBox.Text         = packageViewModel.GetLastPublishedDisplayText();
            this.packageDownloadsTextBox.Text           = packageViewModel.GetDownloadCountDisplayText();
            this.packageDescriptionTextView.Buffer.Text = packageViewModel.Description;
            this.packageIdTextBox.Text    = packageViewModel.Id;
            this.packageIdTextBox.Visible = packageViewModel.HasNoGalleryUrl;
            ShowUri(this.packageIdButton, packageViewModel.GalleryUrl, packageViewModel.Id);
            ShowUri(this.moreInformationButton, packageViewModel.ProjectUrl);
            ShowUri(this.viewLicenseTermsButton, packageViewModel.LicenseUrl);
            this.packageDependenciesListHBox.Visible  = packageViewModel.HasDependencies;
            this.packageDependenciesNoneLabel.Visible = !packageViewModel.HasDependencies;
            this.packageDependenciesListLabel.Text    = packageViewModel.GetPackageDependenciesDisplayText();

            EnablePackageActionButtons(packageViewModel);

            this.packageInfoFrameVBox.Visible   = true;
            this.managePackageButtonBox.Visible = true;
        }