Example #1
0
        private async void Button_Clicked(object sender, EventArgs e)
        {
            PointSystem.ResetScore();
            Flow.ResetRound();

            var navPage = new NavigationPage(new MainPage());
            await Task.Delay(200);

            await navPage.FadeTo(0, 250);

            await Task.Delay(200);

            await navPage.FadeTo(1, 250);

            Application.Current.MainPage = navPage;
        }
Example #2
0
        public MainPage()
        {
            InitializeComponent();

            LoadMainForm();
            ShoppingSmash();
            SaveOrLoad.ALoadedGame(false);
            Game.DefaultSmash();
            PointSystem.ResetScore();
            if (CrossConnectivity.Current.IsConnected)
            {
                AutomaticLogIn();
            }
            Flow.ResetRound();
            Flow.DidTheGameStart(false);
            BGMusics.Menu_BGM().Play();
        }