Пример #1
0
        private void TreeView_PreviewMouseUp(object sender, MouseButtonEventArgs e)
        {
            if (caidan.SelectedItem != null)
            {
                TreeViewItem selectedTnh = caidan.SelectedItem as TreeViewItem;
                int          a           = int.Parse(selectedTnh.Tag as string);
                switch (a)
                {
                case 1:
                    home.HomePage page = new home.HomePage();
                    zhu_frame.Content = page;
                    break;

                case 2:
                    game.zhu page1 = new game.zhu();
                    zhu_frame.Content = page1;
                    break;

                case 3:
                    zhanghao.zhu page2 = new zhanghao.zhu();
                    zhu_frame.Content = page2;
                    break;

                case 4:
                    setting.zhu page3 = new setting.zhu();
                    zhu_frame.Content = page3;
                    break;

                case 5:
                    book.zhu page4 = new book.zhu();
                    zhu_frame.Content = page4;
                    break;
                }
            }
        }
Пример #2
0
        private void Button_Click_5(object sender, RoutedEventArgs e)
        {
            biaoti.Text = "星空启动器v1.5-账户";

            zhanghao.zhu page = new zhanghao.zhu();
            zhu_frame.Content = page;
        }