コード例 #1
0
        public formNoveJSONGenerator()
        {
            InitializeComponent();

            // Non-data source binding
            List <string> files = NovelJSON.ReadListOfExistingGroupsJSONData();

            foreach (string file in files)
            {
                lstBoxGroups.Items.Add(file);
            }
        }
コード例 #2
0
        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));
        }