public MainPage()
        {
            InitializeComponent();

            NavigationCacheMode = NavigationCacheMode.Required;

            Config.Instance = new Config(this)
            {
                Pivot   = searchPivot,
                AppName = "BoredPanda",
                Ad      = new ConfigAd()
                {
                    AdHolder        = AdHolder,
                    AdApplicationId = "bc5d2773-5216-47a6-804e-ce6640711282",
                    SmallAdUnitId   = "11566395",
                    MediumAdUnitId  = "11566399",
                    LargeAdUnitId   = "11566398"
                }
            };

#if DEBUG
            Core.Config.Instance.LicenseInformation = CurrentAppSimulator.LicenseInformation;
#else
            Core.Config.Instance.LicenseInformation = CurrentApp.LicenseInformation;
#endif

            Core.License.LicenseInfo.SetLicenseInformation();

            Register.Execute();

            PageDataContext = new BoredPandaDataContext();
            DataContext     = PageDataContext;

            string gallery = GetSavedGalleryType();
            if (string.IsNullOrEmpty(gallery))
            {
                gallery = "All";
            }

            ComboBoxMenu.SelectedIndex = (int)GetByName(gallery);
        }
        public MainPage()
        {
            InitializeComponent();

            NavigationCacheMode = NavigationCacheMode.Required;

            Config.Instance = new Config(this)
            {
                Pivot = searchPivot,
                AppName = "BoredPanda",
                Ad = new ConfigAd()
                {
                    AdHolder = AdHolder,
                    AdApplicationId = "bc5d2773-5216-47a6-804e-ce6640711282",
                    SmallAdUnitId = "11566395",
                    MediumAdUnitId = "11566399",
                    LargeAdUnitId = "11566398"
                }
            };

#if DEBUG
            Core.Config.Instance.LicenseInformation = CurrentAppSimulator.LicenseInformation;
#else
            Core.Config.Instance.LicenseInformation = CurrentApp.LicenseInformation;
#endif

            Core.License.LicenseInfo.SetLicenseInformation();

            Register.Execute();

            PageDataContext = new BoredPandaDataContext();
            DataContext = PageDataContext;

            string gallery = GetSavedGalleryType();
            if (string.IsNullOrEmpty(gallery))
                gallery = "All";

            ComboBoxMenu.SelectedIndex = (int)GetByName(gallery);
        }