Ejemplo n.º 1
0
        private void btnContinue_Click(object sender, RoutedEventArgs e)
        {
            PageSwitcher pageSwticher = (PageSwitcher)this.Parent;
            int          levelIndex   = MainPage.PlayerProgress.Last().LevelIndex + 1;
            MainPage     mainPage     = new MainPage(levelIndex);

            pageSwticher.Navigate(mainPage);
        }
Ejemplo n.º 2
0
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            this.CheckAndDownloadUpdateAsync();

            HttpWebRequest.RegisterPrefix("http://", WebRequestCreator.ClientHttp);
            HttpWebRequest.RegisterPrefix("https://", WebRequestCreator.ClientHttp);

            DeploymentConfigurations = e.InitParams;

            PageSwitcher pageSwitcher = new PageSwitcher();

            this.RootVisual = pageSwitcher;

            pageSwitcher.Navigate(new Menu(true));
        }
Ejemplo n.º 3
0
        private void btnRankings_Click(object sender, RoutedEventArgs e)
        {
            PageSwitcher pageSwticher = (PageSwitcher)this.Parent;

            pageSwticher.Navigate(new Ranking());
        }
Ejemplo n.º 4
0
        private void btnNewGame_Click(object sender, RoutedEventArgs e)
        {
            PageSwitcher pageSwticher = (PageSwitcher)this.Parent;

            pageSwticher.Navigate(new MainPage(0));
        }
        private void btnBack_Click(object sender, RoutedEventArgs e)
        {
            PageSwitcher pageSwticher = (PageSwitcher)this.Parent;

            pageSwticher.Navigate(new Menu(false));
        }