예제 #1
0
        public LibrariesModels(string content)
        {
            JArray json = JArray.Parse(content);

            foreach (JArray jitem in json)
            {
                LibrariesModel model = new LibrariesModel(jitem);
                this.ListLibraries.Add(model);
            }
        }
예제 #2
0
        private void btnDetailed_Click(object sender, EventArgs e)
        {
            LibrariesModel model = this.lstLibrarie.SelectedItem as LibrariesModel;

            if (model != null)
            {
                FrmDetailed frm = new FrmDetailed();
                frm.Name = model.name;
                frm.ShowDialog(this);
            }
        }
예제 #3
0
        private void lstLibrarie_SelectedIndexChanged(object sender, EventArgs e)
        {
            LibrariesModel model = this.lstLibrarie.SelectedItem as LibrariesModel;

            if (model != null)
            {
                this.txtName.Text   = model.name;
                this.txtDesc.Text   = model.desc;
                this.txtStarts.Text = model.stars;
            }
        }