Example #1
0
        static void Main(string[] args)
        {
            string[] blacklist = new string[] { "Vector smash protection is enabled.\n" };
            Utility.StandardOutputMonitor.setListener(new MonitorActionListener(blacklist));
            Utility.StandardOutputMonitor.start();

            DownloadManager manager = new DownloadManager(getUgoiraLinks(), new DownloadActionListener(), 1);

            manager.startDownload().join();

            Utility.StandardOutputMonitor.dispose();

            UgoiraAssembler assembler = new UgoiraAssembler(new FileActionListener(), new WebPActionListener(), 1);

            assembler.startAssembly().join();

            Utility.printTerminationMessage();
        }
Example #2
0
        private void startAssembly()
        {
            string[] ugoiraFileNames = getUgoiraFileNames();
            createProgresses(ugoiraFileNames.Length);

            if (ugoiraFileNames.Length > 0)
            {
                createProgressLabels(ugoiraFileNames.Length);

                Thread tempThead = new Thread(() =>
                {
                    using (UgoiraAssembler assembler = new UgoiraAssembler(this, this, UgoiraAssembler.maxThreadCount))
                    {
                        assembler.startAssembly().join();
                    }
                });

                tempThead.IsBackground = true;
                tempThead.Start();
            }
        }