protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e) { string selected = ""; if (NavigationContext.QueryString.TryGetValue("sub", out selected)) { IEnumerable<Subject> s = from sub in a.subjects where sub.ShortName == selected select sub; current = s.ElementAt(0); } if (current != null) { panoramaControl.DataContext = current; LoadNotes(); } else { System.Diagnostics.Debug.WriteLine("subject selection failed"); } }
public TimetableElement(DateTime t, MyWeekDay d, Subject s) { time = t; day = d; subject = s; }