Example #1
0
 public TrackDayViewModel(Attendee attendee, Track track, Day day, ImageCache imageCache)
 {
     _attendee = attendee;
     _track = track;
     _day = day;
     _imageCache = imageCache;
 }
        public SearchDayViewModel(Attendee attendee, Day day, ImageCache imageCache, SearchModel searchModel)
        {
            _attendee = attendee;
            _day = day;
            _imageCache = imageCache;
            _searchModel = searchModel;

            _matchingSessionPlaces = new DependentList<SessionPlace>(() =>
                _searchModel.SearchTerm == null || _searchModel.SearchTerm.Length < 3 ?
                    Enumerable.Empty<SessionPlace>() :
                    from time in _day.Times
                    from sessionPlace in time.AvailableSessions
                    where sessionPlace.Session.Matches(_searchModel.SearchTerm.ToLower())
                    select sessionPlace);
        }
 public ScheduleDayViewModel(Day day, Func<Time, ScheduleTimeViewModel> newScheduleTime)
 {
     _day = day;
     _newScheduleTime = newScheduleTime;
 }
Example #4
0
 // Business constructor
 public Time(
     Day day
     ,DateTime start
     )
 {
     InitializeResults();
     _day = new PredecessorObj<Day>(this, GetRoleDay(), day);
     _start = start;
 }
Example #5
0
            public CorrespondenceFact CreateFact(FactMemento memento)
            {
                Day newFact = new Day(memento);

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

                return newFact;
            }
Example #6
0
 public DayViewModel(Day day)
 {
     _day = day;
 }
 public ScheduleDayViewModel(Day day, Attendee attendee, ImageCache imageCache)
 {
     _day = day;
     _attendee = attendee;
     _imageCache = imageCache;
 }