/// <summary> /// after we get the maze we continue to display the multiplayer screen /// </summary> /// <param name="obj"></param> void Join_Or_ClientJoined_OnComplited(string serverResponse) { this.Dispatcher.Invoke(() => { MultiPlayerGameBoard multiPlayerGameBoard = new MultiPlayerGameBoard(serverResponse, client) { Owner = this.Owner, WindowStartupLocation = WindowStartupLocation.CenterOwner }; //TODO add validation multiPlayerGameBoard.Show(); gameStarted = true; this.Close(); }); }
/// <summary> /// Ctor /// </summary> /// <param name="serverMessage"></param> /// <param name="client"></param> /// <param name="view"></param> public MultiPlayerGameBoardViewModel(string serverMessage, TelnetMultiClient client, MultiPlayerGameBoard view) { this.model = new MultiPlayerGameBoardModel(serverMessage, client); this.view = view; }