public static void ShowLeaderboard(IWin32Window invoker)
        {
            HighscoresForm leaderboard = new HighscoresForm();

            if (invoker != null)
            {
                leaderboard.ShowDialog(invoker);
            }
            else
            {
                leaderboard.ShowDialog();
            }
        }
        private static string GetPlayerNameOnNewHighScore(FieldConfiguration activeConfig, int currentScore, IWin32Window invoker)
        {
            string result = null;

            if (NewHighscoreReached(activeConfig, currentScore))
            {
                using (HighscoresForm highscoreSelectionForm = new HighscoresForm(activeConfig, currentScore))
                {
                    highscoreSelectionForm.ShowDialog(invoker);
                    result = highscoreSelectionForm.PlayerName;
                    if (string.IsNullOrEmpty(result))
                    {
                        result = "Anonymous";
                    }
                }
            }
            return(result);
        }