public IActionResult Index()
        {
            CustomCrawler myCrawler = new CustomCrawler();

            var heronames = myCrawler.GetAllLinks();

            //1)
            //myCrawler.DownloadHeroes();
            //2)
            //myCrawler.MakeHeroFiles(heronames);
            //3)
            //myCrawler.DownloadHero(heronames);
            //4)
            //myCrawler.CreateHeroImages(heronames);
            //5
            //myCrawler.DownloadHeroImages(heronames);
            //6
            //myCrawler.CreateJsonFile();



            myCrawler.PopulateJsonFile(heronames);
            return(View());
        }
Exemplo n.º 2
0
        /// <summary>
        /// 새로운 창을 실행합니다.
        /// </summary>
        /// <param name="args"></param>
        static void ProcessWindow(string[] args)
        {
            switch (args[0])
            {
            case "artist_viewer":

                Application.Current.Dispatcher.BeginInvoke(new System.Action(
                                                               delegate
                {
                    ArtistViewerWindow avw = new ArtistViewerWindow();
                    avw.Show();
                }));
                break;

            case "test":

                Application.Current.Dispatcher.BeginInvoke(new System.Action(
                                                               delegate
                {
                    TestWindow tw = new TestWindow();
                    tw.Show();
                }));
                break;

            case "finder":

                Application.Current.Dispatcher.BeginInvoke(new System.Action(
                                                               delegate
                {
                    FinderWindow fw = new FinderWindow();
                    fw.Show();
                }));
                break;

            case "article_info":

                Application.Current.Dispatcher.BeginInvoke(new System.Action(
                                                               delegate
                {
                    ArticleInfoWindow aiw = new ArticleInfoWindow();
                    aiw.Show();
                }));
                break;

            case "patch_note":

                Application.Current.Dispatcher.BeginInvoke(new System.Action(
                                                               delegate
                {
                    PatchNoteWindow pnw = new PatchNoteWindow();
                    pnw.Show();
                }));
                break;

            case "car":

                Application.Current.Dispatcher.BeginInvoke(new System.Action(
                                                               delegate
                {
                    CustomArtistsRecommendWindow carw = new CustomArtistsRecommendWindow();
                    carw.Show();
                }));
                break;

            case "zip_viewer":

                Application.Current.Dispatcher.BeginInvoke(new System.Action(
                                                               delegate
                {
                    ZipViewer zv = new ZipViewer();
                    zv.Show();
                }));
                break;

            case "series_manager":

                Application.Current.Dispatcher.BeginInvoke(new System.Action(
                                                               delegate
                {
                    SeriesManager sm = new SeriesManager();
                    sm.Show();
                }));
                break;

            case "crawler":

                Application.Current.Dispatcher.BeginInvoke(new System.Action(
                                                               delegate
                {
                    MangaCrawler mc = new MangaCrawler();
                    mc.Show();
                }));
                break;

            case "zip-listing":

                Application.Current.Dispatcher.BeginInvoke(new System.Action(
                                                               delegate
                {
                    ZipListing zl = new ZipListing();
                    zl.Show();
                }));
                break;

            case "cc":

                Application.Current.Dispatcher.BeginInvoke(new System.Action(
                                                               delegate
                {
                    CustomCrawler cc = new CustomCrawler();
                    cc.Show();
                }));
                break;

            case "editor":

                Application.Current.Dispatcher.BeginInvoke(new System.Action(
                                                               delegate
                {
                    ScriptEditor ed = new ScriptEditor();
                    ed.Show();
                }));
                break;

            case "elo":

                Application.Current.Dispatcher.BeginInvoke(new System.Action(
                                                               delegate
                {
                    RankSimulator rs = new RankSimulator();
                    rs.Show();
                }));
                break;

            case "ft":

                Application.Current.Dispatcher.BeginInvoke(new System.Action(
                                                               delegate
                {
                    ForbiddenTester ft = new ForbiddenTester();
                    ft.Show();
                }));
                break;

            case "zip-artists":

                Application.Current.Dispatcher.BeginInvoke(new System.Action(
                                                               delegate
                {
                    ZipArtists za = new ZipArtists();
                    za.Show();
                }));
                break;

            default:
                Console.Instance.WriteLine($"'{args[0]}' window is not found.");
                break;
            }
        }