public LibrariesModels(string content) { JArray json = JArray.Parse(content); foreach (JArray jitem in json) { LibrariesModel model = new LibrariesModel(jitem); this.ListLibraries.Add(model); } }
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); } }
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; } }