public MainPage() { InitializeComponent(); NavigationCacheMode = NavigationCacheMode.Required; Config.Instance = new Config(this) { Pivot = searchPivot, AppName = "Trending", Ad = new ConfigAd() { AdHolder = AdHolder, AdApplicationId = "5c6e8ec0-b7fe-44c1-a47e-2ec91587e338", SmallAdUnitId = "11569959", MediumAdUnitId = "11569958", LargeAdUnitId = "11569957" } }; #if DEBUG Core.Config.Instance.LicenseInformation = CurrentAppSimulator.LicenseInformation; #else Core.Config.Instance.LicenseInformation = CurrentApp.LicenseInformation; #endif Core.License.LicenseInfo.SetLicenseInformation(); Register.Execute(); PageDataContext = new TrendingDataContext(); 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 = "Trending", Ad = new ConfigAd() { AdHolder = AdHolder, AdApplicationId = "5c6e8ec0-b7fe-44c1-a47e-2ec91587e338", SmallAdUnitId = "11569959", MediumAdUnitId = "11569958", LargeAdUnitId = "11569957" } }; #if DEBUG Core.Config.Instance.LicenseInformation = CurrentAppSimulator.LicenseInformation; #else Core.Config.Instance.LicenseInformation = CurrentApp.LicenseInformation; #endif Core.License.LicenseInfo.SetLicenseInformation(); Register.Execute(); PageDataContext = new TrendingDataContext(); DataContext = PageDataContext; string gallery = GetSavedGalleryType(); if (string.IsNullOrEmpty(gallery)) gallery = "All"; ComboBoxMenu.SelectedIndex = (int)GetByName(gallery); }