Esempio n. 1
0
        protected async override void OnActivated(IActivatedEventArgs args)
        {
            base.OnActivated(args);
            if (Window.Current.Content == null)
            {
                await LaunchTheApp();
            }

            switch (args.Kind)
            {
            case ActivationKind.Protocol:
                await HandleProtocolActivation(args);

                break;

            case ActivationKind.VoiceCommand:
                await CortanaHelper.HandleProtocolActivation(args);

                break;

            case ActivationKind.ToastNotification:
                ToastHelper.HandleProtocolActivation(args);
                break;
            }
        }