Esempio n. 1
0
 public TrackDayViewModel(Attendee attendee, Track track, Day day, ImageCache imageCache)
 {
     _attendee = attendee;
     _track = track;
     _day = day;
     _imageCache = imageCache;
 }
Esempio n. 2
0
 public TrackViewModel(
     Track track,
     SearchModel search,
     Func<SessionPlace, SessionHeaderViewModel> newSessionHeaderViewModel)
 {
     _track = track;
     _search = search;
     _newSessionHeaderViewModel = newSessionHeaderViewModel;
 }
 public TrackDetailsViewModel(Track track)
 {
     _track = track;
 }
Esempio n. 4
0
            public CorrespondenceFact CreateFact(FactMemento memento)
            {
                Track newFact = new Track(memento);

                // Create a memory stream from the memento data.
                using (MemoryStream data = new MemoryStream(memento.Data))
                {
                    using (BinaryReader output = new BinaryReader(data))
                    {
                        newFact._name = (string)_fieldSerializerByType[typeof(string)].ReadData(output);
                    }
                }

                return newFact;
            }
Esempio n. 5
0
 // Business constructor
 public Session(
     Conference conference
     ,Speaker speaker
     ,Track track
     )
 {
     _unique = Guid.NewGuid();
     InitializeResults();
     _conference = new PredecessorObj<Conference>(this, GetRoleConference(), conference);
     _speaker = new PredecessorObj<Speaker>(this, GetRoleSpeaker(), speaker);
     _track = new PredecessorOpt<Track>(this, GetRoleTrack(), track);
 }
Esempio n. 6
0
 public Session NewSession(Speaker speaker, Track track)
 {
     return Community.AddFact(new Session(this, speaker, track));
 }
Esempio n. 7
0
 // Results
 // Business constructor
 public Track__name(
     Track track
     ,IEnumerable<Track__name> prior
     ,string value
     )
 {
     InitializeResults();
     _track = new PredecessorObj<Track>(this, GetRoleTrack(), track);
     _prior = new PredecessorList<Track__name>(this, GetRolePrior(), prior);
     _value = value;
 }
Esempio n. 8
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);
 }
Esempio n. 9
0
 public TrackViewModel(Attendee attendee, Track track, ImageCache imageCache)
 {
     _attendee = attendee;
     _track = track;
     _imageCache = imageCache;
 }
Esempio n. 10
0
 public TrackViewModel(Track track)
 {
     _track = track;
 }