コード例 #1
0
 internal frmGameBoard(List <Player> pList, DatabaseAccess db, LocalGame aLocalGame)
 {
     InitializeComponent();
     playerList = pList;
     database   = db;
     localGame  = aLocalGame;
 }
コード例 #2
0
ファイル: frmMainMenu.cs プロジェクト: nmattern/BlackjackGame
        private void playButton_Click(object sender, EventArgs e)
        {
            var gameLobbyInstance = new frmGameLobby(player, database);
            var localGameInstance = new LocalGame();

            gameLobbyInstance.Location = this.Location;
            this.Hide();
            // This is an event handler for the closing of a child form
            // Passes the subject (child form) and arguments to close
            // Parent form as well
            gameLobbyInstance.Show();
            gameLobbyInstance.FormClosed += (s, args) => this.Close();
        }