예제 #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:
                    zhu_zhaxiang.kuanjia page = new zhu_zhaxiang.kuanjia();
                    zhu_frame.Content = page;
                    break;

                case 2:
                    break;

                case 3:
                    zhu_youxi.youxi_liebiao page1 = new zhu_youxi.youxi_liebiao();
                    zhu_frame.Content = page1;
                    break;

                case 4:
                    break;

                case 5:
                    break;
                }
            }
        }
예제 #2
0
 private void Zhuye_Loaded(object sender, RoutedEventArgs e)
 {
     zhu_zhaxiang.kuanjia page = new zhu_zhaxiang.kuanjia();
     zhu_frame.Content = page;
 }