public GameHeaderViewModel(Game game) { _game = game; }
// 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; }
// Business constructor public Round( Game game ,int index ) { InitializeResults(); _game = new PredecessorObj<Game>(this, RoleGame, game); _index = index; }
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; }