public void ShowActor(Window window)
        {
            if (this.Source.ActorId == null)
            {
                return;
            }
            var w = new ArtistViewerWindow()
            {
                Owner = window
            };

            w.TitleTextBlock.Text = "actor";
            w.ViewModel.LoadAsync(this.Source.ActorId);
            w.ShowDialog();
        }
Пример #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;
            }
        }