コード例 #1
0
        private Page createPageChapter6()
        {
            MenuPageChapter6 page = new MenuPageChapter6();

            page.NextEvent += ((object arg) =>
            {
                if (arg.Equals("chapter6_sy1"))
                {
                    contentFrame.Content = createPageChapter6_sy1();
                }
                else if (arg.Equals("chapter6_sy2"))
                {
                    contentFrame.Content = createPageChapter6_sy2();
                }
                else if (arg.Equals("chapter6_sy3"))
                {
                    contentFrame.Content = createPageChapter6_sy3();
                }
                else
                {
                    MessageBox.Show("正在开发中......");
                    contentFrame.Content = createPageChapter6_sy1();
                }
            });

            return(page);
        }
コード例 #2
0
        private Page createPageFgbz()
        {
            MenuPageChapter6 page = new MenuPageChapter6();

            page.NextEvent += ((object arg) =>
            {
                if (arg.Equals("fgbz_fg"))
                {
                    contentFrame.Content = createPageFgbz_fg();
                }
                else
                {
                    MessageBox.Show("正在开发中......");
                    contentFrame.Content = createPageFgbz_fg();
                }

                /*
                 * else if (arg.Equals("index_sbdss"))
                 * {
                 *  contentFrame.Content = createPageIndex_sbdss()
                 * }
                 * else if (arg.Equals("index_hss"))
                 * {
                 *  contentFrame.Content = createPageIndex_hss()
                 * }
                 * else if (arg.Equals("index_hfw"))
                 * {
                 *  contentFrame.Content = createPageIndex_hfw()
                 * }
                 * else if (arg.Equals("index_shdw"))
                 * {
                 *  contentFrame.Content = createPageIndex_shdw();
                 * }
                 * else if (arg.Equals("index_shry"))
                 * {
                 *  contentFrame.Content = createPageIndex_shry();
                 * }
                 * */
            });

            return(page);
        }