Exemple #1
0
        public SelPage(GameModeController gmCtl)
        {
            m_gmCtl      = gmCtl;
            m_Game       = null;
            m_bNeedStart = false;

            this.Loaded += OnLoaded;

            InitializeComponent();
        }
Exemple #2
0
        private void OnLoaded(object sender, RoutedEventArgs args)
        {
            m_Game = new SelGame(this, new SelButton[3] {
                selBtn_0, selBtn_1, selBtn_2
            }, new Image[2] {
                labelBackground, labelContent
            });

            if (m_bNeedStart)
            {
                m_Game.RestartGame();
                m_bNeedStart = false;
            }
        }