public ScheduleRowViewModel(Room room)
 {
     _room = room;
 }
Example #2
0
 // 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;
 }
Example #3
0
 // Business constructor
 public Place(
     Time placeTime
     ,Room room
     )
 {
     InitializeResults();
     _placeTime = new PredecessorObj<Time>(this, GetRolePlaceTime(), placeTime);
     _room = new PredecessorObj<Room>(this, GetRoleRoom(), room);
 }
Example #4
0
            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;
            }
Example #5
0
 // 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);
 }