Exemplo n.º 1
0
 /// <summary>
 /// after we press start we display a waiting screen
 /// </summary>
 /// <param name="obj"></param>
 private void Generate_Raed_OnComplited(Task <string> obj)
 {
     this.Dispatcher.Invoke(() =>
     {
         SinglePlayerGameBoard singlePlayerGameBoard = new SinglePlayerGameBoard(obj.Result, client)
         {
             Owner = this.Owner,
             WindowStartupLocation = WindowStartupLocation.CenterOwner
         };
         //TODO add validation
         singlePlayerGameBoard.Show();
         gameStarted = true;
         this.Close();
     });
 }
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="serverMessage"></param>
 /// <param name="client"></param>
 /// <param name="view"></param>
 public SinglePlayerBoardGameViewModel(string serverMessage, TelnetSingaleClient client, SinglePlayerGameBoard view)
 {
     this.model = new SinglePlayerBoardGameModel(serverMessage, client);
     this.view  = view;
 }