private void tsmiFileRun_Click(object sender, EventArgs e) { // var ncode = "n5084bv"; var ncode = "n5655dt"; NdlMng.getNovelInfo(ncode); MessageBox.Show(Resources.Msg_Finish, Resources.Msg_Information, MessageBoxButtons.OK, MessageBoxIcon.Information); }
private void textToolStripMenuItem_Click(object sender, EventArgs e) { //var ncode = "xn5084bv"; var ncode = "n5084bv"; //var ncode = "n5655dt"; NdlMng.outputNovelText(ncode); MessageBox.Show(Resources.Msg_Finish, Resources.Msg_Information, MessageBoxButtons.OK, MessageBoxIcon.Information); }
private void dummyToolStripMenuItem_Click(object sender, EventArgs e) { var ncode = "n5084bv"; var novellist = DbMng.getNovelList(ncode); var filepath = Path.Combine(NdlMng.createProjectDirPath(), "tmp", ncode, ncode + ".txt"); using (var sw = new StreamWriter(filepath, false, Encoding.GetEncoding("utf-8"))) { sw.Write(novellist.Html); } var subtitles = DbMng.getSubTitleByNovelId(ncode); foreach (var subtitle in subtitles) { var subpath = Path.Combine(NdlMng.createProjectDirPath(), "tmp", ncode, ncode + "-" + subtitle.Id + ".txt"); using (var sw = new StreamWriter(subpath, false, Encoding.GetEncoding("utf-8"))) { sw.Write(subtitle.Html); } } }