Exemple #1
0
 // Code to execute when the application is activated (brought to foreground)
 // This code will not execute when the application is first launched
 private void Application_Activated(object sender, ActivatedEventArgs e)
 {
     // Telerik Diagnostics
     ApplicationUsageHelper.OnApplicationActivated();
     AppInformation.IsStartupModeActivate = true;
     AppInformation.HasPinLockIntroduced  = false;
     NetworkService.CheckChangesIP();
 }
Exemple #2
0
        // Code to execute when the application detects a Network change.
        private static void NetworkAvailabilityChanged(object sender, NetworkNotificationEventArgs e)
        {
            switch (e.NotificationType)
            {
            case NetworkNotificationType.InterfaceConnected:
            case NetworkNotificationType.InterfaceDisconnected:
                NetworkService.CheckChangesIP();
                break;

            case NetworkNotificationType.CharacteristicUpdate:
            default:
                break;
            }
        }
Exemple #3
0
        // 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)
        {
            // Initialize Telerik Diagnostics with the actual app version information
            ApplicationUsageHelper.Init(AppService.GetAppVersion());
            AppInformation.HasPinLockIntroduced = false;
            NetworkService.CheckChangesIP();

            #if WINDOWS_PHONE_81
            // Code to intercept files that are send to MEGA as share target
            var shareEventArgs = e as ShareLaunchingEventArgs;
            if (shareEventArgs != null)
            {
                this.ShareOperation = shareEventArgs.ShareTargetActivatedEventArgs.ShareOperation;
            }
            #endif
        }