private void ImageButton_Clicked(object sender, EventArgs e)
 {
     if (isInicial)
     {
         LevelPage pagina = new LevelPage();
         Navigation.PushModalAsync(pagina);
     }
     else
     {
         Singleton.Instance.abrindoTela = false;
         Navigation.PopModalAsync();
     }
 }
Exemplo n.º 2
0
        public App()
        {
            InitializeComponent();

            LoadStyles();

            Singleton.Instance.Load();
            Singleton.Instance.tempoInicioJogo = DateTime.Now;

            if (Singleton.Instance.dadosJogador.Nome != null)
            {
                MainPage = new LevelPage();//PageInicial();//Perfil(); // QualANota();//OqueVoceOuve();//Ditado();//
            }
            else
            {
                MainPage = new PageInicial(true);
            }
        }
        private void BtnPlay_Clicked(object sender, EventArgs e)
        {
            Singleton.Instance.dadosJogador.Nome = this.InputName.Text.ToString();

            Singleton.Instance.Save();
            player.Play();

            if (isInicial)
            {
                LevelPage pagina = new LevelPage();
                Navigation.PushModalAsync(pagina);
            }
            else
            {
                Singleton.Instance.abrindoTela = false;
                Navigation.PopModalAsync();
            }
        }