Ejemplo n.º 1
0
 public TrackDayViewModel(Attendee attendee, Track track, Day day, ImageCache imageCache)
 {
     _attendee = attendee;
     _track = track;
     _day = day;
     _imageCache = imageCache;
 }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 public ScheduleDayViewModel(Day day, Func<Time, ScheduleTimeViewModel> newScheduleTime)
 {
     _day = day;
     _newScheduleTime = newScheduleTime;
 }
Ejemplo n.º 4
0
 // Business constructor
 public Time(
     Day day
     ,DateTime start
     )
 {
     InitializeResults();
     _day = new PredecessorObj<Day>(this, GetRoleDay(), day);
     _start = start;
 }
Ejemplo n.º 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;
            }
Ejemplo n.º 6
0
 public DayViewModel(Day day)
 {
     _day = day;
 }
Ejemplo n.º 7
0
 public ScheduleDayViewModel(Day day, Attendee attendee, ImageCache imageCache)
 {
     _day = day;
     _attendee = attendee;
     _imageCache = imageCache;
 }