Exemplo n.º 1
0
        private void FrmLibraries_Load(object sender, EventArgs e)
        {
            LibrariesModels librariesModel = StCloud.GetSingle().GetLibraries();

            foreach (LibrariesModel model in librariesModel.ListLibraries)
            {
                this.lstLibrarie.Items.Add(model);
            }
            this.lstLibrarie.SelectedIndex = 0;
        }
Exemplo 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);
            });
        }