Ejemplo n.º 1
0
 /// <summary>
 /// Initialize mobeelizer application. Execute this method in your App.xaml.cs when application is lounching.
 /// </summary>
 public static void OnLaunching()
 {
     Instance = MobeelizerApplication.CreateApplication();
     Instance.SyncStatusChanged += OnSyncStatusChanged;
     Instance.GetTombstoningManager().ClearAndUnlockSavedState();
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Restore mobeelizer applicaion state after tombstoning. 
        /// Execute this method in your App.xaml.cs when application is activated.
        /// </summary>
        /// <param name="isApplicationInstancePreserved">Indicates whether yuours application instance is preserved.</param>
        public static void OnActivated(bool isApplicationInstancePreserved)
        {
            if (!isApplicationInstancePreserved)
            {
                Instance = MobeelizerApplication.CreateApplication();
                Instance.SyncStatusChanged += OnSyncStatusChanged;
                Instance.GetTombstoningManager().RestoreApplicationState();
            }

            Instance.GetTombstoningManager().ClearSavedState();
        }