Esempio n. 1
0
        public void End()
        {
            AppShell.RemoveAllFlyoutItems();

            LengthOfThisGame = StartingTime - DateTime.UtcNow;

            var EndInfo = new IntroductionViewModel(AppShell, "Konec");

            if (LengthOfThisGame.Minutes <= Model.Limit.Minutes)
            {
                var EndText = new Text()
                {
                    Title = "Úspěšně jsi dokončil hru", OwnText = "Hra ti trvala " + LengthOfThisGame.Minutes + " minut. "
                                                                  + "Limit byl " + Model.Limit.Minutes + " minut.", PositionInIntroduction = 0
                };

                EndInfo.AddText(EndText);
            }
            else
            {
                var EndText = new Text()
                {
                    Title   = "Hru jsi nestihnul v limitu",
                    OwnText = "Hra ti trvala " + LengthOfThisGame.Minutes + " minut. "
                              + "Limit byl " + Model.Limit.Minutes + " minut.",
                    PositionInIntroduction = 0
                };

                EndInfo.AddText(EndText);
            }
        }