public formNoveJSONGenerator() { InitializeComponent(); // Non-data source binding List <string> files = NovelJSON.ReadListOfExistingGroupsJSONData(); foreach (string file in files) { lstBoxGroups.Items.Add(file); } }
private void btnGenJSON_Click(object sender, EventArgs e) { string name = txtBoxNovelName.Text; string link = txtBoxNovelLink.Text; string author = txtBoxNovelAuthor.Text; List <string> toignore = new List <string>(); foreach (string item in lstBoxIgnore.Items) { toignore.Add(item.Split(new[] { ".json" }, StringSplitOptions.None)[0]); } NovelJSON.GenNovelJSON(new Novel(name, link, author, toignore)); }