private IEnumerator DelayPage7(int delay, EmployeeData emp)
        {
            yield return(new WaitForSeconds(delay));

            AbortButton.gameObject.SetActive(false);
            GotItButton.GetComponentInChildren <Text>().text = "Got it";
            Page7EmployeeName.text = emp.Name;
            Page7.Enter();
            TutorialState.Enter();
            SaveGameSystem.Instance.SetTutorialLevel(-1);
        }
 private void Next()
 {
     if (Page1.IsActive())
     {
         EnterPage2();
     }
     else if (Page4.IsActive() || Page5.IsActive())
     {
         MainUiManager.InitialState.Enter();
     }
     else if (Page6.IsActive())
     {
         EnableUi(true);
         GameTime.GameTime.Instance.StartGame();
         SaveGameSystem.Instance.SetTutorialLevel(7);
         MainUiManager.InitialState.Enter();
     }
     else if (Page7.IsActive())
     {
         active = false;
         Destroy(gameObject);
     }
 }
Exemple #3
0
        public OpennInWindow()
        {
            InitializeComponent();

            WindowXCaption.SetBackground(this, baseColora.Bg);
            WindowXCaption.SetForeground(this, baseColora.Fg);

            BG.BeginInit();
            BG.Source = baseColora.Bgp;
            BG.EndInit();

            switch (Main.NowChoice)
            {
            case 1:
            {
                Page1 page1 = new Page1();
                Page.Content = new Frame()
                {
                    Content = page1
                };
            }
            break;

            case 2:
            {
                Page2 page2 = new Page2();
                Page.Content = new Frame()
                {
                    Content = page2
                };
            }
            break;

            case 3:
            {
                Page3 page3 = new Page3();
                Page.Content = new Frame()
                {
                    Content = page3
                };
            }
            break;

            case 4:
            {
                Page4 page4 = new Page4();
                Page.Content = new Frame()
                {
                    Content = page4
                };
            }
            break;

            case 5:
            {
                Page5 page5 = new Page5();
                Page.Content = new Frame()
                {
                    Content = page5
                };
            }
            break;

            case 6:
            {
                Page6 page6 = new Page6();
                Page.Content = new Frame()
                {
                    Content = page6
                };
            }
            break;

            case 7:
            {
                Page7 page7 = new Page7();
                Page.Content = new Frame()
                {
                    Content = page7
                };
            }
            break;

            case -1:
            {
                PageHD1 pageHD1 = new PageHD1();
                Page.Content = new Frame()
                {
                    Content = pageHD1
                };
            }
            break;

            default:
            {
                PageNone pageNone = new PageNone();
                Page.Content = new Frame()
                {
                    Content = pageNone
                };
            }
            break;
            }
            Topmost = true;
        }
Exemple #4
0
        private void Button_Open(object sender, RoutedEventArgs e)
        {
            ListTool upd = UpdateList.SelectedItem as ListTool;

            if (upd == null)
            {
                error.logWriter("你什么都没选就想开工具……", false);
            }
            else
            {
                error.logWriter("加载工具:" + upd.Line, false);
            }
            if (upd != null && upd is ListTool)
            {
                if (upd.Line == "    1 . 批量打开文件")
                {
                    NowPage = 1;
                    Page1 page1 = new Page1();
                    Page.Content = new Frame()
                    {
                        Content = page1
                    };
                }
                else if (upd.Line == "    2 . 调色板")
                {
                    NowPage = 2;
                    Page2 page2 = new Page2();
                    Page.Content = new Frame()
                    {
                        Content = page2
                    };
                }

                /*
                 * else if (upd.Line == "    3 . 快速启动器")
                 * {
                 *  NowPage = 3;
                 *  Page3 page3 = new Page3();
                 *  Page.Content = new Frame()
                 *  {
                 *      Content = page3
                 *  };
                 * }
                 */
                else if (upd.Line == "    4 . 倒计时")
                {
                    NowPage = 4;
                    Page4 page4 = new Page4();
                    Page.Content = new Frame()
                    {
                        Content = page4
                    };
                }
                else if (upd.Line == "    5 . QQ 头像获取")
                {
                    NowPage = 5;
                    Page5 page5 = new Page5();
                    Page.Content = new Frame()
                    {
                        Content = page5
                    };
                }
                else if (upd.Line == "    6 . QQ 消息制作")
                {
                    NowPage = 6;
                    Page6 page6 = new Page6();
                    Page.Content = new Frame()
                    {
                        Content = page6
                    };
                }
                else if (upd.Line == "    7 . 记事簿")
                {
                    NowPage = 7;
                    Page7 page7 = new Page7();
                    page7.ParentWindow = this;
                    Page.Content       = new Frame()
                    {
                        Content = page7
                    };
                }
                else if (upd.Line == "    * . SOS 图标获取")
                {
                    NowPage = -1;
                    PageHD1 pageHD1 = new PageHD1();
                    Page.Content = new Frame()
                    {
                        Content = pageHD1
                    };
                }
                else if (upd.Line == "    回到主页")
                {
                    NowPage = -2;
                    PageMain pageMain = new PageMain();
                    Page.Content = new Frame()
                    {
                        Content = pageMain
                    };
                }
                else if (upd.Line == "    CMD")
                {
                    NowPage = -3;
                    PageHD2 pageHD2 = new PageHD2();
                    pageHD2.ParentWindow = this;
                    Page.Content         = new Frame()
                    {
                        Content = pageHD2
                    };
                }
                else
                {
                    NowPage = -1000;
                    PageNone pageNone = new PageNone();
                    Page.Content = new Frame()
                    {
                        Content = pageNone
                    };
                }
            }
        }