public NewTermModal(TermsDataAccess terms)
 {
     InitializeComponent();
     this.terms           = terms;
     StartDatePicker.Date = this.startDate;
     EndDatePicker.Date   = this.endDate;
 }
        public EditTermModal(Term thisTerm, TermsDataAccess terms)
        {
            InitializeComponent();
            this.thisTerm    = thisTerm;
            this.terms       = terms;
            this.newTermName = thisTerm.TermName;
            this.startDate   = thisTerm.StartDate;
            this.endDate     = thisTerm.EndDate;

            TermNameEntry.Text   = this.newTermName;
            StartDatePicker.Date = this.startDate;
            EndDatePicker.Date   = this.endDate;
        }
        public TermDetailPage(Term term, TermsDataAccess terms)
        {
            InitializeComponent();
            BindingContext = term;
            this.term      = term;
            this.terms     = terms;

            courses.Courses.CollectionChanged += new System.Collections.Specialized.NotifyCollectionChangedEventHandler(CollectionChangedMethod);

            this.coursesForTerm = new ObservableCollection <Course>();
            var list = courses.Courses.Where(c => c.TermId == this.term.Id).ToList();

            foreach (var course in list)
            {
                this.coursesForTerm.Add(course);
            }
            CourseListView.ItemsSource = this.coursesForTerm;
        }