public static NpmInfoBox Create(NpmPackage package)
        {
            _box.lblName.Content     = package.Name;
            _box.lblDesc.Content     = package.Description;
            _box.lblLatest.Content   = package.Version;
            _box.lblAuthor.Content   = package.Author ?? "n/a";
            _box.lblLicense.Content  = package.License ?? "n/a";
            _box.lblHomepage.Content = package.Homepage ?? "n/a";

            _box.AnimateWindowSize(40, 108);

            return(_box);
        }
Пример #2
0
        public static NpmInfoBox Create(NpmPackage package)
        {
            _box.lblName.Content     = package.Name;
            _box.lblDesc.Content     = package.Description;
            _box.lblLatest.Content   = package.Version;
            _box.lblAuthor.Content   = package.Author ?? "n/a";
            _box.lblLicense.Content  = package.License ?? "n/a";
            _box.lblHomepage.Content = package.Homepage ?? "n/a";

            _box.descAuthor.Content   = NPM.Resources.text.QuickInfoAuthor + ":";
            _box.descHomepage.Content = NPM.Resources.text.QuickInfoHomepage + ":";
            _box.descLatest.Content   = NPM.Resources.text.QuickInfoLatest + ":";
            _box.descLicense.Content  = NPM.Resources.text.QuickInfoLicense + ":";

            _box.AnimateWindowSize(40, 108);

            return(_box);
        }