Ejemplo n.º 1
0
        //单击了单个场景
        void scencectl_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            Scence selectedscence = (Scence)((UserControl)sender).Content;

            m_selectedscence.IsSelected = false;
            selectedscence.IsSelected   = true;
            m_selectedscence            = selectedscence;
        }
Ejemplo n.º 2
0
        public MainWindow()
        {
            InitializeComponent();

            InitPackageCtlList();
            InitScenceCtlList();
            ShowPackages();
            m_packagelist[0].IsSelected = true;
            m_selectedpackage           = m_packagelist[0];
            m_scencelist[0].IsSelected  = true;
            m_selectedscence            = m_scencelist[0];
        }