Пример #1
0
        private async void StartGame_ClickAsync(object sender, EventArgs e)
        {
            bool isOnlyNumbers = GameOptions.GetItemChecked(0);
            bool isFiniteDeck  = GameOptions.GetItemChecked(1);

            var response = await ServerConnection.SendStartGame(isFiniteDeck, isOnlyNumbers, false);

            if (!response.Success)
            {
                throw new NotImplementedException("(LobbyForm.cs) Failed to start! " + response.Message);
            }

            OpenGameForm();
        }