/// <summary>
        /// Creates a TableViewSource containing the three collections listed in the specification
        /// </summary>
        public void CreateTableItems()
        {
            List<BasicTableViewItemGroup> tableItems = new List<BasicTableViewItemGroup> ();
            BasicTableViewItemGroup tGroup;

            //Create Group
            tGroup = new BasicTableViewItemGroup() { Name = "Top Box Office"};

            foreach (Movie m in this.TopBoxOfficeMovies)
            {
                //Add movies to Group
                tGroup.Items.Add (new BasicTableViewItem() { Movie = m});
            }

            //Add the Group to the TableView
            tableItems.Add (tGroup);
            tGroup = new BasicTableViewItemGroup() { Name = "Opening This Week"};

            foreach (Movie m in this.OpeningThisWeekMovies)
            {
                tGroup.Items.Add (new BasicTableViewItem() { Movie = m});
            }

            tableItems.Add (tGroup);
            tGroup = new BasicTableViewItemGroup() { Name = "Also In Theaters"};

            foreach (Movie m in this.AlsoInTheatersMovies)
            {
                tGroup.Items.Add (new BasicTableViewItem() { Movie = m});
            }

            tableItems.Add (tGroup);
            this.tableViewSource = new CustomTableViewSource(tableItems);
        }
        /// <summary>
        /// Creates a TableViewSource containing the three collections listed in the specification
        /// </summary>
        public void CreateTableItems()
        {
            List <BasicTableViewItemGroup> tableItems = new List <BasicTableViewItemGroup> ();
            BasicTableViewItemGroup        tGroup;

            //Create Group
            tGroup = new BasicTableViewItemGroup()
            {
                Name = "Top Box Office"
            };

            foreach (Movie m in this.TopBoxOfficeMovies)
            {
                //Add movies to Group
                tGroup.Items.Add(new BasicTableViewItem()
                {
                    Movie = m
                });
            }

            //Add the Group to the TableView
            tableItems.Add(tGroup);
            tGroup = new BasicTableViewItemGroup()
            {
                Name = "Opening This Week"
            };


            foreach (Movie m in this.OpeningThisWeekMovies)
            {
                tGroup.Items.Add(new BasicTableViewItem()
                {
                    Movie = m
                });
            }

            tableItems.Add(tGroup);
            tGroup = new BasicTableViewItemGroup()
            {
                Name = "Also In Theaters"
            };

            foreach (Movie m in this.AlsoInTheatersMovies)
            {
                tGroup.Items.Add(new BasicTableViewItem()
                {
                    Movie = m
                });
            }

            tableItems.Add(tGroup);
            this.tableViewSource = new CustomTableViewSource(tableItems);
        }