Exemplo n.º 1
0
        /// <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();
        }
Exemplo n.º 2
0
        /// <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
        }
Exemplo n.º 3
0
        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();
        }