Esempio n. 1
0
 // Fields
 // Results
 // Business constructor
 public GameRequestCompletion(
     GameRequest gameRequest
     ,Player player
     )
 {
     InitializeResults();
     _gameRequest = new PredecessorObj<GameRequest>(this, RoleGameRequest, gameRequest);
     _player = new PredecessorObj<Player>(this, RolePlayer, player);
 }
 public GameRequestViewModel(GameRequest gameRequest, MainNavigationModel mainNavigation)
     : base(mainNavigation)
 {
     _gameRequest = gameRequest;
 }
Esempio n. 3
0
            public CorrespondenceFact CreateFact(FactMemento memento)
            {
                GameRequest newFact = new GameRequest(memento);

                // Create a memory stream from the memento data.
                using (MemoryStream data = new MemoryStream(memento.Data))
                {
                    using (BinaryReader output = new BinaryReader(data))
                    {
                        newFact._unique = (Guid)_fieldSerializerByType[typeof(Guid)].ReadData(output);
                    }
                }

                return newFact;
            }