Exemplo n.º 1
0
        private void OpenRemoteGame(RemoteGame remoteGame)
        {
            var formGameWindow = new FormGameWindow();
            var gameWindowGui  = formGameWindow.GetGameWindowGui();

            gameWindowGui.SetGameData(remoteGame);
            remoteGame.SetGameView(gameWindowGui);

            formGameWindow.ShowDialog();
        }
Exemplo n.º 2
0
        private void OpenLocalGame(LocalGame localGame)
        {
            var formGameWindow = new FormGameWindow();
            var gameWindowGui  = formGameWindow.GetGameWindowGui();

            gameWindowGui.SetGameData(localGame);
            localGame.SetGameView(gameWindowGui);

            formGameWindow.ShowDialog();
        }