// Code to execute when the application is launching (eg, from Start) // This code will not execute when the application is reactivated private void Application_Launching(object sender, LaunchingEventArgs e) { //isVIP = Helper.isVIP(); // isTrial = new LicenseInformation().IsTrial(); voucherHelper = new VoucherHelpr(); categoryHelper = new CategoryHelper(); accountHelper = new AccountHelper(); storeHelper = new StoreHelper(); }
/// <summary> /// Initializes the singleton application object. This is the first line of authored code /// executed, and as such is the logical equivalent of main() or WinMain(). /// </summary> public App() { Microsoft.ApplicationInsights.WindowsAppInitializer.InitializeAsync( Microsoft.ApplicationInsights.WindowsCollectors.Metadata | Microsoft.ApplicationInsights.WindowsCollectors.Session); this.InitializeComponent(); this.Suspending += OnSuspending; IsHardwareButtonsAPIPresent = Windows.Foundation.Metadata.ApiInformation.IsTypePresent("Windows.Phone.UI.Input.HardwareButtons"); if (IsHardwareButtonsAPIPresent) { HardwareButtons.BackPressed += HardwareButtons_BackPressed; } voucherHelper = new VoucherHelpr(); }