BlottoBeats.Client.MainForm.sendScore C# (CSharp) Метод

sendScore() приватный Метод

private sendScore ( int tempScore, SongParameters tempSong, UserToken tempUser, int tempGenre ) : void
tempScore int
tempSong BlottoBeats.Library.SongData.SongParameters
tempUser BlottoBeats.Library.Authentication.UserToken
tempGenre int
Результат void
        private void sendScore(int tempScore, SongParameters tempSong, UserToken tempUser, int tempGenre)
        {
            if (server.Test())
            {
                if (tempScore > 0) server.SendRequest(new BBRequest(tempSong, true, tempUser));
                else if (tempScore < 0) server.SendRequest(new BBRequest(tempSong, false, tempUser));

                createRedditThreads();

                if (!this.IsDisposed) this.Invoke((MethodInvoker)delegate { this.Invalidate(); });
            }
        }