/// <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() { this.InitializeComponent(); this.Suspending += this.OnSuspending; Settings = new Settings(); Settings.Load(); ContinuationManager = new ContinuationManager(); }
/// <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() { this.InitializeComponent(); this.Suspending += this.OnSuspending; Settings = new Settings(); Settings.Load(); #if WINDOWS_PHONE_APP ContinuationManager = new ContinuationManager(); #endif }
protected override void OnActivated(IActivatedEventArgs e) { System.Diagnostics.Debug.WriteLine("App.OnActivated(): " + e.PreviousExecutionState.ToString()); // Check if this is a continuation var continuationEventArgs = e as IContinuationActivatedEventArgs; if (continuationEventArgs != null) { ContinuationManager.Continue(continuationEventArgs); } Window.Current.Activate(); }