public MainPage()
        {
            this.InitializeComponent();

            this.NavigationCacheMode = NavigationCacheMode.Required;
            Task <int> currentComicTask = ComicPanel.getNewestComicNumber();

            currentComicTask.Wait();
            newestComic  = currentComicTask.Result;
            currentComic = newestComic;

            for (int i = 0; i < pivotBuffer; i++)
            {
                pivotItems[i]         = new PivotItem();
                pivotItems[i].Margin  = new Thickness(0, 0, 0, 0);
                pivotItems[i].Content = new Grid();
                pivot.Items.Add(pivotItems[i]);
                comicPanels[i] = new ComicPanel(this);
                comicPanels[i].addOnComicLoadListener(this);
                ((Grid)pivotItems[i].Content).Children.Add(comicPanels[i]);
            }
        }
        public MainPage()
        {
            this.InitializeComponent();

            this.NavigationCacheMode = NavigationCacheMode.Required;
            Task<int> currentComicTask = ComicPanel.getNewestComicNumber();
            currentComicTask.Wait();
            newestComic = currentComicTask.Result;
            currentComic = newestComic;

            for (int i = 0; i < pivotBuffer; i++)
            {
                pivotItems[i] = new PivotItem();
                pivotItems[i].Margin = new Thickness(0, 0, 0, 0);
                pivotItems[i].Content = new Grid();
                pivot.Items.Add(pivotItems[i]);
                comicPanels[i] = new ComicPanel(this);
                comicPanels[i].addOnComicLoadListener(this);
                ((Grid)pivotItems[i].Content).Children.Add(comicPanels[i]);
            }
            
        }