private void HandleQuit(Quit x) { MessageBox.Show($"GAME OVER\n" + $"WINNER :> {x.DeclareWinner.WinnerNum}. player => {x.DeclareWinner.WinnerName}\n" + $"LOSER :> {x.DeclareWinner.GameOver.PlayerNum}. player => {x.DeclareWinner.GameOver.PlayerName}"); Application.Exit(); }
private void HandleDeclareWinner(DeclareWinner x) { Thread.Sleep(1000); MessageBox.Show($"GAME OVER\n" + $"WINNER :> {x.WinnerNum}. player => {x.WinnerName}\n" + $"LOSER :> {x.GameOver.PlayerNum}. player => {x.GameOver.PlayerName}"); var quit = new Quit(x); opponent.Tell(x); Application.Exit(); }