Exemple #1
0
        protected async override void OnActivated(IActivatedEventArgs args)
        {
            if (args.PreviousExecutionState == ApplicationExecutionState.Terminated)
            {
                try
                {
                    await SuspensionManager.RestoreAsync();
                }
                catch { }
            }

            if (args is IContinuationActivatedEventArgs)
            {
                _continuator.ContinueWith(args);
            }

            Window.Current.Activate();
        }