public ScheduleRowViewModel(Room room)
 {
     _room = room;
 }
示例#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;
 }
示例#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);
 }
示例#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;
            }
示例#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);
 }