public void WinConditionWihoutDisconnect() { int Winner = Game1.WhoWin(); if (Winner == (int)PlayerColors.Black) { //Worker.CancelAsync(); //Przerwij polaczenie MessageBox.Show("Black Player is winner"); DrawBoardandPawns(Game1.Pawns, Game1.BoardColor); } if (Winner == (int)PlayerColors.White) { // Worker.CancelAsync(); //Przerwij polaczenie MessageBox.Show("White Player is winner"); DrawBoardandPawns(Game1.Pawns, Game1.BoardColor); } }