Ejemplo n.º 1
0
 public void StartGame()
 {
     if (m_Game != null)
     {
         m_Game.RestartGame();
     }
     else
     {
         m_bNeedStart = true;
     }
 }
Ejemplo n.º 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;
            }
        }