Beispiel #1
0
        /// <summary>
        /// a vissza gombbal a LevelSelector oldalra lehet visszalépni
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void BackToLS_Click(object sender, RoutedEventArgs e)
        {
            this.Gameplay = null;
            this.bwVM.StopTimer();
            this.DataContext = null;
            this.bwVM        = null;
            LevelSelector levelSel = new LevelSelector(this.mainFrame);

            this.mainFrame.Content = levelSel;
        }
Beispiel #2
0
        private void Levelselector_Click(object sender, RoutedEventArgs e)
        {
            LevelSelector levelSel = new LevelSelector(this.mainFrame);

            this.mainFrame.Content = levelSel;
        }
Beispiel #3
0
        /// <summary>
        /// a játékválasztó page-t indítja a gomb metódusa
        /// </summary>
        /// <param name="sender"> sender paraméter</param>
        /// <param name="e">RoutedEventArgs típusú paraméter</param>
        private void ButtonClick_main_newgame(object sender, RoutedEventArgs e)
        {
            LevelSelector levelSel = new LevelSelector(this.mainFrame);

            this.mainFrame.Content = levelSel;
        }