public GameHeaderViewModel(Game game)
 {
     _game = game;
 }
예제 #2
0
 // Results
 // Business constructor
 public Game__name(
     Game game
     ,IEnumerable<Game__name> prior
     ,string value
     )
 {
     InitializeResults();
     _game = new PredecessorObj<Game>(this, RoleGame, game);
     _prior = new PredecessorList<Game__name>(this, RolePrior, prior);
     _value = value;
 }
예제 #3
0
 // Business constructor
 public Round(
     Game game
     ,int index
     )
 {
     InitializeResults();
     _game = new PredecessorObj<Game>(this, RoleGame, game);
     _index = index;
 }
예제 #4
0
            public CorrespondenceFact CreateFact(FactMemento memento)
            {
                Game newFact = new Game(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;
            }