Parse() 공개 메소드

public Parse ( ) : void
리턴 void
예제 #1
0
        private void btn_Create_Click(object sender, EventArgs e)
        {
            string path = null;

            int index = this.src.LastIndexOf("\\");

            path = this.src.Substring(0, index);

            string target = path + @"\book\";

            if (System.IO.Directory.Exists(target))
            {
                Directory.Delete(target, true);
            }
            Directory.CreateDirectory(target);

            string prefix   = this.txt_Prefix.Text;
            int    preCount = int.Parse(this.txt_PreCount.Text);

            TxtParser parser = new TxtParser(src, target, prefix, preCount);

            parser.Parse();

            MessageBox.Show("生成成功。");
        }
예제 #2
0
        public static void Soushenji()
        {
            string src = @"D:\XiQi\Prod\iApps\OkrBook\_doc\_books\搜神记\搜神记.txt";
            string target = @"D:\XiQi\Prod\iApps\OkrBook\_doc\_books\搜神记\book\";
            string prefix = "搜神记";

            TxtParser parser = new TxtParser(src, target, prefix, 3);
            parser.Parse();
        }
예제 #3
0
        public static void Xiyouji()
        {
            string src = @"D:\XiQi\Prod\iApps\OkrBook\_doc\_books\04 西游记\西游记.txt";
            string target = @"D:\XiQi\Prod\iApps\OkrBook\_doc\_books\04 西游记\book\";
            string prefix = "第";

            TxtParser parser = new TxtParser(src, target, prefix, 0);
            parser.Parse();
        }
예제 #4
0
        public static void Sanguo()
        {
            string src = @"D:\XiQi\Prod\iApps\OkrBook\_doc\_books\02 三国演义\三国演义.txt";
            string target = @"D:\XiQi\Prod\iApps\OkrBook\_doc\_books\02 三国演义\book\";
            string prefix = "正文";

            TxtParser parser = new TxtParser(src, target, prefix, 3);
            parser.Parse();
        }
예제 #5
0
        public static void Shuihu()
        {
            string src = @"D:\XiQi\Prod\iApps\OkrBook\_doc\_books\03 水浒传\水浒传.txt";
            string target = @"D:\XiQi\Prod\iApps\OkrBook\_doc\_books\03 水浒传\book\";
            string prefix = "第";

            TxtParser parser = new TxtParser(src, target, prefix, 0);
            parser.Parse();
        }
예제 #6
0
        public static void JinPingmei()
        {
            string src = @"D:\XiQi\Prod\iApps\OkrBook\_doc\_books\06 金瓶梅\金瓶梅.txt";
            string target = @"D:\XiQi\Prod\iApps\OkrBook\_doc\_books\06 金瓶梅\book\";
            string prefix = "第";

            TxtParser parser = new TxtParser(src, target, prefix, 0);
            parser.Parse();
        }
예제 #7
0
        public static void Liaozhai()
        {
            string src = @"D:\XiQi\Prod\iApps\OkrBook\_doc\_books\聊斋志异\聊斋志异.txt";
            string target = @"D:\XiQi\Prod\iApps\OkrBook\_doc\_books\聊斋志异\book\";
            string prefix = "卷";

            TxtParser parser = new TxtParser(src, target, prefix, 0);
            parser.Parse();
        }
예제 #8
0
        public static void Sanguo()
        {
            string src    = @"D:\XiQi\Prod\iApps\OkrBook\_doc\_books\02 三国演义\三国演义.txt";
            string target = @"D:\XiQi\Prod\iApps\OkrBook\_doc\_books\02 三国演义\book\";
            string prefix = "正文";

            TxtParser parser = new TxtParser(src, target, prefix, 3);

            parser.Parse();
        }
예제 #9
0
        public static void Fengshen()
        {
            string src = @"D:\XiQi\Prod\iApps\OkrBook\_doc\_books\封神演义\封神演义.txt";
            string target = @"D:\XiQi\Prod\iApps\OkrBook\_doc\_books\封神演义\book\";
            string prefix = "正文";
            int preCount = prefix.Length;

            TxtParser parser = new TxtParser(src, target, prefix, preCount);
            parser.Parse();
        }
예제 #10
0
        public static void Soushenji()
        {
            string src    = @"D:\XiQi\Prod\iApps\OkrBook\_doc\_books\搜神记\搜神记.txt";
            string target = @"D:\XiQi\Prod\iApps\OkrBook\_doc\_books\搜神记\book\";
            string prefix = "搜神记";

            TxtParser parser = new TxtParser(src, target, prefix, 3);

            parser.Parse();
        }
예제 #11
0
        public static void JinPingmei()
        {
            string src    = @"D:\XiQi\Prod\iApps\OkrBook\_doc\_books\06 金瓶梅\金瓶梅.txt";
            string target = @"D:\XiQi\Prod\iApps\OkrBook\_doc\_books\06 金瓶梅\book\";
            string prefix = "第";

            TxtParser parser = new TxtParser(src, target, prefix, 0);

            parser.Parse();
        }
예제 #12
0
        public static void Liaozhai()
        {
            string src    = @"D:\XiQi\Prod\iApps\OkrBook\_doc\_books\聊斋志异\聊斋志异.txt";
            string target = @"D:\XiQi\Prod\iApps\OkrBook\_doc\_books\聊斋志异\book\";
            string prefix = "卷";

            TxtParser parser = new TxtParser(src, target, prefix, 0);

            parser.Parse();
        }
예제 #13
0
        public static void Shuihu()
        {
            string src    = @"D:\XiQi\Prod\iApps\OkrBook\_doc\_books\03 水浒传\水浒传.txt";
            string target = @"D:\XiQi\Prod\iApps\OkrBook\_doc\_books\03 水浒传\book\";
            string prefix = "第";

            TxtParser parser = new TxtParser(src, target, prefix, 0);

            parser.Parse();
        }
예제 #14
0
        public static void Xiyouji()
        {
            string src    = @"D:\XiQi\Prod\iApps\OkrBook\_doc\_books\04 西游记\西游记.txt";
            string target = @"D:\XiQi\Prod\iApps\OkrBook\_doc\_books\04 西游记\book\";
            string prefix = "第";

            TxtParser parser = new TxtParser(src, target, prefix, 0);

            parser.Parse();
        }
예제 #15
0
        public static void Fengshen()
        {
            string src      = @"D:\XiQi\Prod\iApps\OkrBook\_doc\_books\封神演义\封神演义.txt";
            string target   = @"D:\XiQi\Prod\iApps\OkrBook\_doc\_books\封神演义\book\";
            string prefix   = "正文";
            int    preCount = prefix.Length;

            TxtParser parser = new TxtParser(src, target, prefix, preCount);

            parser.Parse();
        }
예제 #16
0
파일: Main.cs 프로젝트: anytao/ModernReader
        private void btn_Create_Click(object sender, EventArgs e)
        {
            string path = null;

            int index = this.src.LastIndexOf("\\");
            path = this.src.Substring(0, index);

            string target = path + @"\book\";

            if (System.IO.Directory.Exists(target))
            {
                Directory.Delete(target, true);
            }
            Directory.CreateDirectory(target);

            string prefix = this.txt_Prefix.Text;
            int preCount = int.Parse(this.txt_PreCount.Text);

            TxtParser parser = new TxtParser(src, target, prefix, preCount);
            parser.Parse();

            MessageBox.Show("生成成功。");
        }