public SessionDetailsViewModel(Session session)
 {
     _session = session;
 }
 // Results
 // Business constructor
 public Session__name(
     Session session
     ,IEnumerable<Session__name> prior
     ,string value
     )
 {
     InitializeResults();
     _session = new PredecessorObj<Session>(this, GetRoleSession(), session);
     _prior = new PredecessorList<Session__name>(this, GetRolePrior(), prior);
     _value = value;
 }
 public ScheduledSessionViewModel(Session session)
 {
     _session = session;
 }
 // Fields
 // Results
 // Business constructor
 public Session__description(
     Session session
     ,IEnumerable<Session__description> prior
     ,IEnumerable<DocumentSegment> value
     )
 {
     InitializeResults();
     _session = new PredecessorObj<Session>(this, GetRoleSession(), session);
     _prior = new PredecessorList<Session__description>(this, GetRolePrior(), prior);
     _value = new PredecessorList<DocumentSegment>(this, GetRoleValue(), value);
 }
 // Fields
 // Results
 // Business constructor
 public Session__level(
     Session session
     ,IEnumerable<Session__level> prior
     ,Level value
     )
 {
     InitializeResults();
     _session = new PredecessorObj<Session>(this, GetRoleSession(), session);
     _prior = new PredecessorList<Session__level>(this, GetRolePrior(), prior);
     _value = new PredecessorObj<Level>(this, GetRoleValue(), value);
 }
 // Results
 // Business constructor
 public SessionNotice(
     Session session
     ,DateTime timeSent
     ,string text
     )
 {
     InitializeResults();
     _session = new PredecessorObj<Session>(this, GetRoleSession(), session);
     _timeSent = timeSent;
     _text = text;
 }
 // Fields
 // Results
 // Business constructor
 public SessionPlace(
     Session session
     ,Place place
     ,IEnumerable<SessionPlace> prior
     )
 {
     InitializeResults();
     _session = new PredecessorObj<Session>(this, GetRoleSession(), session);
     _place = new PredecessorObj<Place>(this, GetRolePlace(), place);
     _prior = new PredecessorList<SessionPlace>(this, GetRolePrior(), prior);
 }
            public CorrespondenceFact CreateFact(FactMemento memento)
            {
                Session newFact = new Session(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 SessionDelete(
     Session deleted
     )
 {
     _unique = Guid.NewGuid();
     InitializeResults();
     _deleted = new PredecessorObj<Session>(this, GetRoleDeleted(), deleted);
 }
Exemple #10
0
 public void NewSessionPlace(Session session, DateTime startTime, string roomNumber)
 {
     Time time = GetTime(startTime);
     Room room = GetRoom(roomNumber);
     Place place = Community.AddFact(new Place(time, room));
     var currentSessionPlaces = session.CurrentSessionPlaces.ToList();
     if (currentSessionPlaces.Count != 1 || currentSessionPlaces[0].Place != place)
         Community.AddFact(new SessionPlace(session, place, currentSessionPlaces));
 }
 // Fields
 // Results
 // Business constructor
 public SessionTrack(
     Session session
     ,Track track
     ,IEnumerable<SessionTrack> prior
     )
 {
     InitializeResults();
     _session = new PredecessorObj<Session>(this, GetRoleSession(), session);
     _track = new PredecessorObj<Track>(this, GetRoleTrack(), track);
     _prior = new PredecessorList<SessionTrack>(this, GetRolePrior(), prior);
 }
 // Fields
 // Results
 // Business constructor
 public SessionSlot(
     Session session
     ,Slot slot
     ,IEnumerable<SessionSlot> prior
     )
 {
     InitializeResults();
     _session = new PredecessorObj<Session>(this, GetRoleSession(), session);
     _slot = new PredecessorObj<Slot>(this, GetRoleSlot(), slot);
     _prior = new PredecessorList<SessionSlot>(this, GetRolePrior(), prior);
 }
 // Fields
 // Results
 // Business constructor
 public SessionDelete(
     Session session
     )
 {
     InitializeResults();
     _session = new PredecessorObj<Session>(this, GetRoleSession(), session);
 }
 public SessionViewModel(Session session)
 {
     _session = session;
 }