Example #1
0
 private void App_Activated(object sender, Microsoft.Phone.Shell.ActivatedEventArgs e)
 {
     if (!e.IsApplicationInstancePreserved)
     {
         ApplicationUsageHelper.OnApplicationActivated();
     }
 }
Example #2
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)
 {
     if (!e.IsApplicationInstancePreserved)
     {
         //This will ensure that the ApplicationUsageHelper is initialized again if the application has been in Tombstoned state.
         ApplicationUsageHelper.OnApplicationActivated();
     }
 }
Example #3
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();
 }
Example #4
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)
        {
            //          IsolatedStorageExplorer.Explorer.RestoreFromTombstone();
            mainViewModels.PlayQueue = new System.Collections.ObjectModel.ObservableCollection <PlaylistItem>();
            PodcastPlaybackManager.getInstance().updateCurrentlyPlayingEpisode();

            ApplicationUsageHelper.OnApplicationActivated();
        }
Example #5
0
        // Code to execute when the application is activated (brought to foreground)
        // This code will not execute when the application is first launched

        #region Events

        /// <summary>
        /// Handles the Activated event of the Application control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="ActivatedEventArgs" /> instance containing the event data.</param>
        private void Application_Activated(object sender, ActivatedEventArgs e)
        {
            ApplicationUsageHelper.OnApplicationActivated();
            // Ensure that application state is restored appropriately
            if (!ViewModel.IsRvDataChanged)
            {
                ViewModel.LoadReturnVisitList(SortOrder.DateOldestToNewest);
            }
        }
        // Code to execute when the application is activated (brought to foreground)
        // This code will not execute when the application is first launched
        private void ApplicationActivated(object sender, ActivatedEventArgs e)
        {
            if (!e.IsApplicationInstancePreserved)
            {
                AuthenticationService.Current.Start(SimpleIoc.Default.GetInstance <IExtendedApiClient>(), new MBLogger(typeof(AuthenticationService)));
            }

            ApplicationUsageHelper.OnApplicationActivated();
        }
Example #7
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 ApplicationActivated(object sender, ActivatedEventArgs e)
        {
            if (!e.IsApplicationInstancePreserved)
            {
                AppStartup();
            }

            ApplicationUsageHelper.OnApplicationActivated();
        }
Example #8
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)
        {
            if (!e.IsApplicationInstancePreserved)
            {
                //This will ensure that the ApplicationUsageHelper is initialized again if the application has been in Tombstoned state.
                ApplicationUsageHelper.OnApplicationActivated();
            }
            var versionAttrib = new AssemblyName(Assembly.GetExecutingAssembly().FullName);

            currentVersion = versionAttrib.Version.ToString();
        }
Example #9
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)
        {
            if (!e.IsApplicationInstancePreserved)
            {
                //This will ensure that the ApplicationUsageHelper is initialized again if the application has been in Tombstoned state.
                ApplicationUsageHelper.OnApplicationActivated();
            }


            // Ensure that application state is restored appropriately
            if (!App.ViewModel.IsDataLoaded)
            {
                App.ViewModel.LoadData();
            }
        }
Example #10
0
        // Code to execute when the application is activated (brought to foreground)
        // This code will not execute when the application is first launched
        private async void Application_Activated(object sender, ActivatedEventArgs e)
        {
            var versionAttrib = new AssemblyName(Assembly.GetExecutingAssembly().FullName);

            if (!e.IsApplicationInstancePreserved)
            {
                //This will ensure that the ApplicationUsageHelper is initialized again if the application has been in Tombstoned state.
                ApplicationUsageHelper.OnApplicationActivated();

                if (KernelService.Kernel.Get <ISettingsService>().LoadSetting <bool>("SyncEnabled"))
                {
                    if (await((WP8SyncService)KernelService.Kernel.Get <SyncService>()).LiveLoginSilent())
                    {
                        KernelService.Kernel.Get <MainViewModel>().SyncCommand.Execute(null);
                    }
                }
            }
        }
Example #11
0
        protected override void OnActivate(object sender, ActivatedEventArgs e)
        {
            base.OnActivate(sender, e);

            var serviceResolver = IoC.Get <INavigationServiceResolver>();

            if (!e.IsApplicationInstancePreserved)
            {
                serviceResolver.TryRestore();
            }

            var analitics = IoC.Get <IAnalyticsService>();

            analitics.StartSession();

            serviceResolver.TryResolve();

            ApplicationUsageHelper.OnApplicationActivated();
        }
Example #12
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)
 {
     ApplicationUsageHelper.OnApplicationActivated();
 }