Ejemplo n.º 1
0
        public DetailedModel GetDetailedByName(string name)
        {
            string        content = this.Get($"libraries/{name}.min.json");
            DetailedModel model   = JsonConvert.DeserializeObject <DetailedModel>(content);

            return(model);
        }
Ejemplo n.º 2
0
        private void FrmDetailed_Load(object sender, EventArgs e)
        {
            DetailedModel model = StCloud.GetSingle().GetDetailedByName(this.Name);

            this.txtName.Text     = model.name;
            this.txtNpmName.Text  = model.npmName;
            this.txtVersion.Text  = model.version;
            this.txtHomepage.Text = model.homepage;
            this.txtLicense.Text  = model.license;
            this.txtStars.Text    = model.stars;
            this.txtGit.Text      = model.repository.url;
            this.lstkeywords.Items.Clear();
            model.keywords.ForEach(item => {
                this.lstkeywords.Items.Add(item);
            });
        }