public ScheduleRowViewModel(Room room) { _room = room; }
// Results // Business constructor public Room__roomNumber( Room room ,IEnumerable<Room__roomNumber> prior ,string value ) { InitializeResults(); _room = new PredecessorObj<Room>(this, GetRoleRoom(), room); _prior = new PredecessorList<Room__roomNumber>(this, GetRolePrior(), prior); _value = value; }
// Business constructor public Place( Time placeTime ,Room room ) { InitializeResults(); _placeTime = new PredecessorObj<Time>(this, GetRolePlaceTime(), placeTime); _room = new PredecessorObj<Room>(this, GetRoleRoom(), room); }
public CorrespondenceFact CreateFact(FactMemento memento) { Room newFact = new Room(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; }
// Fields // Results // Business constructor public Slot( Time slotTime ,Room room ) { InitializeResults(); _slotTime = new PredecessorObj<Time>(this, GetRoleSlotTime(), slotTime); _room = new PredecessorObj<Room>(this, GetRoleRoom(), room); }