Пример #1
0
        static void Main(string[] args)
        {
            eligibleCheck checker     = new eligibleCheck();
            List <string> sourceFiles = checker.travers(args);
            List <string> htmFiles;
            int           scount = 0;
            int           fcount = 0;

            htmFiles = checker.preCreate(sourceFiles);
            foreach (string file in htmFiles)
            {
                if (file != "")
                {
                    scount++;
                }
                else
                {
                    fcount++;
                }
            }
            Console.Write("\n success:{0},   fail:{1}", scount, fcount);
            scount   = 0;
            fcount   = 0;
            htmFiles = checker.renameFiles(sourceFiles, htmFiles);
            foreach (string file in htmFiles)
            {
                if (file != "")
                {
                    scount++;
                }
                else
                {
                    fcount++;
                }
            }
            Console.Write("\n success:{0},   fail:{1}", scount, fcount);
        }
        static void Main(string[] args)
        {

            eligibleCheck checker = new eligibleCheck();
            List<string> sourceFiles = checker.travers(args);
            List<string> htmFiles;
            int scount = 0;
            int fcount = 0;
            htmFiles=checker.preCreate(sourceFiles);
            foreach (string file in htmFiles) {
                if (file != "") scount++;
                else fcount++;
            }
            Console.Write("\n success:{0},   fail:{1}", scount, fcount);
            scount = 0;
            fcount = 0;
            htmFiles = checker.renameFiles(sourceFiles,htmFiles);
            foreach (string file in htmFiles)
            {
                if (file != "") scount++;
                else fcount++;
            }
            Console.Write("\n success:{0},   fail:{1}", scount, fcount);
        }