Exemplo n.º 1
0
        static void Main(string[] args)
        {
            int i = 1;

            while (i == 1)
            {
                MainFile mainfile = new MainFile();
                readInfoAboutFile(mainfile);

                Console.WriteLine("Start - " + DateTime.Now);

                FillFile fillFile = new FillFile();
                fillFile.fill(mainfile);

                SplitFile     splitFile = new SplitFile();
                List <String> filesname = splitFile.split(mainfile);

                SortOneFile sortOneFile = new SortOneFile();
                sortOneFile.sortOne(filesname);

                SortAllFiles sortAllFiles = new SortAllFiles();
                sortAllFiles.sortAll(filesname, mainfile);

                Console.WriteLine("Stop - " + DateTime.Now + "\n");
                Console.Write("1 - One more time\n0 - Exit\nYour decision - ");
                i = int.Parse(Console.ReadLine());
                Console.WriteLine();
            }
        }