private void OpenRemoteGame(RemoteGame remoteGame) { var formGameWindow = new FormGameWindow(); var gameWindowGui = formGameWindow.GetGameWindowGui(); gameWindowGui.SetGameData(remoteGame); remoteGame.SetGameView(gameWindowGui); formGameWindow.ShowDialog(); }
private void OpenLocalGame(LocalGame localGame) { var formGameWindow = new FormGameWindow(); var gameWindowGui = formGameWindow.GetGameWindowGui(); gameWindowGui.SetGameData(localGame); localGame.SetGameView(gameWindowGui); formGameWindow.ShowDialog(); }