public SessionDetailsViewModel(Session session)
 {
     _session = session;
 }
예제 #2
0
 // 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;
 }
예제 #4
0
 // 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);
 }
예제 #5
0
 // 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);
 }
예제 #6
0
 // Results
 // Business constructor
 public SessionNotice(
     Session session
     ,DateTime timeSent
     ,string text
     )
 {
     InitializeResults();
     _session = new PredecessorObj<Session>(this, GetRoleSession(), session);
     _timeSent = timeSent;
     _text = text;
 }
예제 #7
0
 // 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);
 }
예제 #8
0
            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;
            }
예제 #9
0
 // Fields
 // Results
 // Business constructor
 public SessionDelete(
     Session deleted
     )
 {
     _unique = Guid.NewGuid();
     InitializeResults();
     _deleted = new PredecessorObj<Session>(this, GetRoleDeleted(), deleted);
 }
예제 #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));
 }
예제 #11
0
 // 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);
 }
예제 #12
0
 // 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);
 }
예제 #13
0
 // Fields
 // Results
 // Business constructor
 public SessionDelete(
     Session session
     )
 {
     InitializeResults();
     _session = new PredecessorObj<Session>(this, GetRoleSession(), session);
 }
예제 #14
0
 public SessionViewModel(Session session)
 {
     _session = session;
 }