private PlayerInfoFilename open()
        {
            using (PlayerSelector selector = new PlayerSelector())
            {
                if (selector.ShowDialog(this) == DialogResult.OK)
                {
                    return(selector.SelectedPlayer);
                }
            }

            return(null);
        }
예제 #2
0
        private void playerPanel_Click(object sender, EventArgs e)
        {
            PlayerInfoFilename playerInfo = null;

            using (PlayerSelector selector = new PlayerSelector())
            {
                if (selector.ShowDialog(this) == DialogResult.OK)
                {
                    playerInfo = selector.SelectedPlayer;
                }
            }

            if (playerInfo != null)
            {
                setup.PlayerInfo = playerInfo;
                setup.Filename   = playerInfo.File;
                setup.Typename   = playerInfo.ClassName;
            }
            UpdateControls();

            listingPlayer       = playerInfo;
            needHighscoreUpdate = true;
        }