private async void saveSettingsClicked(object sender, EventArgs e)
        {
            await _connection.UpdateAsync(roundTime);

            await _connection.UpdateAsync(maxScore);

            var navPage = new SetupGamePage(Game);

            Application.Current.MainPage = navPage;
        }
Beispiel #2
0
        private void SaveTeamClicked(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(teamName.Text))
            {
                DisplayAlert("!", "Нужно имя команды", "Ok");
                return;
            }
            Team.Name    = teamName.Text;
            Team.Players = new Queue <Player>(Players.ToList());
            _game.Teams.Enqueue(Team);
            var navPage = new SetupGamePage(_game);

            Application.Current.MainPage = navPage;
        }