public void  ShowPagedContent(int nextIndex)
        {
            textPageTitle.Text = "   School API Data Pages";
            textPageText.Text  = "";

            try
            {
                if (PagedSupport == null)
                {
                    PagedSupport = new SchoolsPagedContentSupport(_configuration);
                }
                IPageDataModel Data = PagedSupport.CreatePageDataModel(nextIndex);

                ShowPagedButtons(true);
                textPageTitle.Text      = "   " + Data.Title;
                textPageText.Visibility = Visibility.Visible;
                textPageText.Text       = PagedSupport.StatusMessage;

                if (Data.HasContent == true)
                {
                    ShowTableData(Data);
                    EnableListItems(Data.Content.Length);
                }
            }
            catch (Exception ex)
            {
                textPageTitle.Text      = "   School API Data Exception";
                textPageText.Text       = "   Exception loading School API Data with " + ex.Message;
                textPageText.Visibility = Visibility.Visible;

                textPageHeader.Visibility = Visibility.Collapsed;
                EnableListItems(0);
            }
        }
        public MainWindow()
        {
            InitializeComponent();

            var builder = new ConfigurationBuilder()
                          .SetBasePath(Directory.GetCurrentDirectory())
                          .AddJsonFile("WpfSchools.json", optional: false, reloadOnChange: true);

            var Configuration = builder.Build();

            _configuration = Configuration;
            PagedSupport   = new SchoolsPagedContentSupport(_configuration);
            ShowHome();
        }