public void Load(Session.Data sessionData) { currentSession = new Session(board, playerViews); currentSession.Load(sessionData); currentSession.GameFinished += FinishGame; }
/// <summary> /// Navigates to game /// </summary> /// <param name="sessionData">Savedata of a session to load</param> public void NavigateToGame(Session.Data sessionData) { PageGame game = new PageGame(this); currentPage = game; Navigate(game); game.Load(sessionData); }