Пример #1
0
 public void Deactivated(object sender, DeactivatedEventArgs e)
 {
     // save state
     double vscroll = ListBoxOne.GetVerticalScrollOffset();
     Configuration.SaveStateSetting<object>("DataContext", DataContext);
     Configuration.SaveStateSetting<double>("VScrollPosition", vscroll);
 }
Пример #2
0
 // Code to execute when the application is deactivated (sent to background)
 // This code will not execute when the application is closing
 private void Application_Deactivated(object sender, DeactivatedEventArgs e)
 {
     if (wasLocked & ((e.Reason == DeactivationReason.ApplicationAction) | (e.Reason == DeactivationReason.UserAction)))
     {
         this.Terminate();
     }
 }
Пример #3
0
 void appService_Deactivated(object sender, DeactivatedEventArgs e)
 {
     string key = "pause";
     if (appService.State.ContainsKey(key))
         appService.State[key] = Manager.manager.pause;
     else
         appService.State.Add(key,Manager.manager.pause);
 }
 // Code to execute when the application is deactivated (sent to background)
 // This code will not execute when the application is closing
 private void Application_Deactivated(object sender, DeactivatedEventArgs e)
 {
     // get a tombstonedata item...
     TombstoneData data = TombstoneData.GetTombstoneItem("UserToken", true);
     if (data == null)
         throw new InvalidOperationException("'data' is null.");
     data.Value = RestServiceProxy.Token;
     data.SaveChanges();
 }
Пример #5
0
        private void Application_Deactivated(object sender, DeactivatedEventArgs e)
        {
			if (_vm != null)
            {
                var phoneApplicationPage = RootFrame.Content as PhoneApplicationPage;
                if (phoneApplicationPage != null)
                    _vm = (VMBase)phoneApplicationPage.DataContext;
            }
        }
Пример #6
0
 // Code to execute when the application is deactivated (sent to background)
 // This code will not execute when the application is closing
 private void Application_Deactivated(object sender, DeactivatedEventArgs e)
 {
     CameraExplorer.DataContext d = CameraExplorer.DataContext.Singleton;
     if (d.Device != null)
     {
         d.Device.Dispose();
         d.Device = null;
     }
 }
Пример #7
0
 // Código para ejecutar cuando la aplicación se desactiva (se envía a segundo plano)
 // Este código no se ejecutará cuando la aplicación se cierre
 private void Application_Deactivated(object sender, DeactivatedEventArgs e)
 {
     var viewModelLocatorService = Current.Resources["ViewModelLocator"] as ViewModelLocator;
     if (viewModelLocatorService != null)
     {
         viewModelLocatorService.MainViewModel.SaveRecipesToIs();
         viewModelLocatorService.MainViewModel.UpdateTile();
     }
 }
        // Code to execute when the application is deactivated (sent to background)
        // This code will not execute when the application is closing
        private void Application_Deactivated(object sender, DeactivatedEventArgs e)
        {
            Debug.WriteLine("App is deactivating");
            if (OnNewTilePinned != null)
            {
                OnNewTilePinned();
                OnNewTilePinned = null;
            }

        }
Пример #9
0
        public void Deactivated(object sender, DeactivatedEventArgs e)
        {
            Configuration.SaveStateSetting<int>("SelectedPivot", pivot.SelectedIndex);

            if (pivot.SelectedItem != null && pivot.SelectedItem is PivotItem)
            {
                PivotItem selectedItem = (PivotItem)pivot.SelectedItem;
                if (selectedItem.Content != null && selectedItem.Content is NavigationPanel)
                {
                    ((NavigationPanel)selectedItem.Content).Deactivated(sender, e);
                }
            }
        }
 // Code to execute when the application is deactivated (sent to background)
 // This code will not execute when the application is closing
 private void ApplicationDeactivated(object sender, DeactivatedEventArgs e)
 {
     SaveSettings();
 }
 // Code to execute when the application is deactivated (sent to background)
 // This code will not execute when the application is closing
 private void Application_Deactivated(object sender, DeactivatedEventArgs e)
 {
     Countly.EndSession();
 }
Пример #12
0
 // Code to execute when the application is deactivated (sent to background)
 // This code will not execute when the application is closing
 private void Application_Deactivated(object sender, DeactivatedEventArgs e)
 {
     BlobCache.UserAccount.Flush().Wait();
 }
Пример #13
0
 // Code to execute when the application is deactivated (sent to background)
 // This code will not execute when the application is closing
 private void Application_Deactivated(object sender, DeactivatedEventArgs e)
 {
     // Ensure that required application state is persisted here.
       //  App._viewModel.LoadData();
 }
Пример #14
0
 // Code to execute when the application is deactivated (sent to background)
 // This code will not execute when the application is closing
 private void Application_Deactivated(object sender, DeactivatedEventArgs e)
 {
     PhoneApplicationService.Current.UserIdleDetectionMode = OriginalIdleMode;
 }
Пример #15
0
        // Code to execute when the application is deactivated (sent to background)
        // This code will not execute when the application is closing
        private void Application_Deactivated(object sender, DeactivatedEventArgs e)
        {
            //Try to save collections, in case we are terminated
            AppContext.CurrentUser.TrySaveCollectedHighlightsLocally();

            //Anything else?
        }
Пример #16
0
        // Code to execute when the application is deactivated (sent to background)
        // This code will not execute when the application is closing
        private void Application_Deactivated(object sender, DeactivatedEventArgs e)
        {
            IDictionary<string, object> state =
                PhoneApplicationService.Current.State;

            if (state.ContainsKey("Model"))
            {
                Model = (Model.DataModel)state["Model"];
            }
        }
Пример #17
0
 // Code to execute when the application is deactivated (sent to background)
 // This code will not execute when the application is closing
 private void Application_Deactivated(object sender, DeactivatedEventArgs e)
 {
     // Ensure that required application state is persisted here.
 }
Пример #18
0
 // 停用应用程序(发送到后台)时执行的代码
 // 此代码在应用程序关闭时不执行
 private void Application_Deactivated(object sender, DeactivatedEventArgs e)
 {
     // 确保所需的应用程序状态在此处保持不变。
 }
Пример #19
0
 // Code to execute when the application is deactivated (sent to background)
 // This code will not execute when the application is closing
 private void Application_Deactivated(object sender, DeactivatedEventArgs e)
 {
     SaveToIsolatedStorage();
     SaveToStateObject();
 }
Пример #20
0
 static void OnAppDeactivated(object sender, DeactivatedEventArgs e)
 {
     NavigationState = PhoneAppNavigationState.Deactivated;
 }
Пример #21
0
 /// <summary>
 /// Code to execute when the application is deactivated (sent to background).<br/>
 /// This code will not execute when the application is closing.
 /// </summary>
 /// <param name="sender">Event sender.</param>
 /// <param name="e">The <see cref="DeactivatedEventArgs"/> instance containing the event data.</param>
 private void ApplicationDeactivated(object sender, DeactivatedEventArgs e)
 {
     // Do nothing.
 }
Пример #22
0
 // Code to execute when the application is deactivated (sent to background)
 // This code will not execute when the application is closing
 private void Application_Deactivated(object sender, DeactivatedEventArgs e)
 {
     UnityPlayer.UnityApp.Deactivate();
 }
Пример #23
0
 // Code to execute when the application is deactivated (sent to background)
 // This code will not execute when the application is closing
 private void Application_Deactivated(object sender, DeactivatedEventArgs e)
 {
     AccelerometerHelper.Instance.IsActive = false;
 }
Пример #24
0
 // Code to execute when the application is deactivated (sent to background)
 // This code will not execute when the application is closing
 private void Application_Deactivated(object sender, DeactivatedEventArgs e)
 {
     UnityPlayer.UnityApp.Deactivate();
 }
Пример #25
0
 // Code to execute when the application is deactivated (sent to background)
 // This code will not execute when the application is closing
 private void Application_Deactivated(object sender, DeactivatedEventArgs e)
 {
 }
 // Code to execute when the application is deactivated (sent to background)
 // This code will not execute when the application is closing
 private void Application_Deactivated(object sender, DeactivatedEventArgs e)
 {
     Appboy.SharedInstance.CloseSession();
 }
Пример #27
0
 // Code to execute when the application is deactivated (sent to background)
 // This code will not execute when the application is closing
 private void Application_Deactivated(object sender, DeactivatedEventArgs e)
 {
     // FAST RESUME: When the applicaiton is deactivated, save the current deactivation settings to isolated storage
     SaveCurrentDeactivationSettings();
 }
 // Code to execute when the application is deactivated (sent to background)
 // This code will not execute when the application is closing
 private void Application_Deactivated(object sender, DeactivatedEventArgs e)
 {
     DeactivatedTime = DateTime.Now;
     PhoneApplicationService.Current.State["DeactivatedTime"] = DeactivatedTime;
     PhoneApplicationService.Current.State["LaunchingTime"] = LaunchedTime;
 }
Пример #29
0
 void OnDeactivated(object sender, DeactivatedEventArgs e)
 {
     Save(StorageMode.Any);
 }
Пример #30
0
 private void OnDeactivated(object s, DeactivatedEventArgs e)
 {
     this.IsBeingDeactivated();
 }
Пример #31
0
        // Code to execute when the application is deactivated (sent to background)
        // This code will not execute when the application is closing
        private void Application_Deactivated(object sender, DeactivatedEventArgs e)
        {
            MainPage m = (MainPage)((PhoneApplicationFrame)RootVisual).Content;

            m.OnAppDeactivated();
        }
Пример #32
0
        // Code to execute when the application is deactivated (sent to background)
        // This code will not execute when the application is closing
        private void Application_Deactivated(object sender, DeactivatedEventArgs e)
        {
            ViewModels.ViewModelLocator locator = Resources["Locator"] as ViewModels.ViewModelLocator;
            if (locator == null)
            {
                throw new NullReferenceException("locator is null!");
            }

            locator.SaveDataToApplicationState();

            //Save currentUri state
            SaveCurrentUriToApplicationState();
        }
Пример #33
0
        // Code to execute when the application is deactivated (sent to background)
        // This code will not execute when the application is closing
        private void Application_Deactivated(object sender, DeactivatedEventArgs e)
        {
            // Ensure that required application state is persisted here.
            // If there is data in the application member variable...
            if (!string.IsNullOrEmpty(ApplicationDataObject))
            {
                // Store it in the State dictionary.
                PhoneApplicationService.Current.State["ApplicationDataObject"] = ApplicationDataObject;

                // Also store it in isolated storage, in case the application is never reactivated.
                SaveDataToIsolatedStorage("Quran360DataFile.txt", ApplicationDataObject);
            }
        }
Пример #34
0
        void AppDeactivated(object sender, DeactivatedEventArgs e)
        {
            Debug.WriteLine("AppDeactivated");

            try
            {
                GapBrowser.InvokeScript("PhoneGapCommandResult", new string[] { "pause" });
            }
            catch (Exception)
            {
                Debug.WriteLine("Pause event error");
            }
        }
Пример #35
0
        //***********************************************************************************************************************

        //***********************************************************************************************************************
        /// <summary>
        /// Se produit quand l'application est désactivée.
        /// </summary>
        /// <param name="Sender">Objet source de l'appel.</param>
        /// <param name="Args">
        /// <b>DeactivatedEventArgs</b> qui contient les données d'événement.
        /// </param>
        //-----------------------------------------------------------------------------------------------------------------------
        private void OnDeactivated(object Sender, DeactivatedEventArgs Args)
        {
        }
Пример #36
0
 private void Application_Deactivated(object sender, DeactivatedEventArgs e)
 {
     Debug.WriteLine("Application_Deactivated Called");
     SpawnLightstreamerClientStop();
 }
Пример #37
0
 // Code to execute when the application is deactivated (sent to background)
 // This code will not execute when the application is closing
 private void Application_Deactivated(object sender, DeactivatedEventArgs e)
 {
     // Ensure that required application state is persisted here.
 }
Пример #38
0
        // Code to execute when the application is deactivated (sent to background)
        // This code will not execute when the application is closing
        private void Application_Deactivated(object sender, DeactivatedEventArgs e)
        {
            timer.Start();

            geo.Start();
        }
Пример #39
0
 private void OnDeactivated(object s, DeactivatedEventArgs e)
 {
     IsBeingDeactivated();
 }
Пример #40
0
        void AppDeactivated(object sender, DeactivatedEventArgs e)
        {
            Debug.WriteLine("INFO: AppDeactivated");

            try
            {
                CordovaBrowser.InvokeScript("CordovaCommandResult", new string[] { "pause" });
            }
            catch (Exception)
            {
                Debug.WriteLine("ERROR: Pause event error");
            }
        }
Пример #41
0
 private void Application_Deactivated(object sender, DeactivatedEventArgs e)
 {
     LampDevice.Dispose();
 }
Пример #42
0
        void AppDeactivated(object sender, DeactivatedEventArgs e)
        {
            Debug.WriteLine("INFO: AppDeactivated");

            try
            {
                CordovaBrowser.InvokeScript("eval", new string[] { "cordova.fireDocumentEvent('pause');" });
            }
            catch (Exception)
            {
                Debug.WriteLine("ERROR: Pause event error");
            }
        }
Пример #43
0
 // Code to execute when the application is deactivated (sent to background)
 // This code will not execute when the application is closing
 private void Application_Deactivated(object sender, DeactivatedEventArgs e)
 {
     System.Diagnostics.Debug.WriteLine("Application_Deactivated");
 }
Пример #44
0
 /// <summary>
 /// Occurs when the application is being tombstoned or paused.
 /// </summary>
 protected virtual void OnDeactivate(object sender, DeactivatedEventArgs e) { }
Пример #45
0
 protected virtual void OnApplicationDeactivated(object sender, DeactivatedEventArgs e)
 {
     _wasApplicationTerminated = false;
     GalaSoft.MvvmLight.Messaging.Messenger.Default.Send <Messages.AppLifeCycleMessage>(new Messages.AppLifeCycleMessage(Messages.LifeCycleState.Deactivating));
 }
Пример #46
0
 // Code to execute when the application is deactivated (sent to background)
 // This code will not execute when the application is closing
 private void Application_Deactivated(object sender, DeactivatedEventArgs e)
 {
 }
Пример #47
0
 // 停用应用程序(发送到后台)时执行的代码
 // 此代码在应用程序关闭时不执行
 private void Application_Deactivated(object sender, DeactivatedEventArgs e)
 {
     App.DownVideoModel.isDownding = false;
     App.DownVideoModel.SaveVideoData();
 }