/// <summary>
		/// Display sessions for the day, grouped by time slot
		/// </summary>
		public SessionDayScheduleScreen (string dayName, int day, SessionSplitView sessionSplitView) 
		: base (UITableViewStyle.Plain, null, true)
		{
			splitView = sessionSplitView;

			this.sessions = BL.Managers.SessionManager.GetSessions ( day );
			this.dayName = dayName;
			this.Title = this.dayName;

			Root = 	new RootElement (this.dayName) {
					from s in this.sessions
						group s by s.Start.Ticks into g
						orderby g.Key
						select new Section (new DateTime (g.Key).ToString("dddd HH:mm") ) {
						from hs in g
						   select (Element) new MWC.iOS.UI.CustomElements.SessionElement (hs, splitView)
			}};

		}
Exemplo n.º 2
0
		/// <summary>for iPad</summary>
		public SessionsScreen (SessionSplitView sessionSplitView) : base ()
		{
			splitView = sessionSplitView;
			EnableSearch = true; // requires SessionElement to implement Matches()
		}