private void App_Activated(object sender, Microsoft.Phone.Shell.ActivatedEventArgs e) { if (!e.IsApplicationInstancePreserved) { ApplicationUsageHelper.OnApplicationActivated(); } }
// 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(); } }
// 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(); }
// 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(); }
// 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(); }
// 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(); }
// 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(); }
// 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(); } }
// 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); } } } }
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(); }
// 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(); }