Example #1
0
        public void OnNavigatedTo(NavigationParameters parameters)
        {
            MobileCenterService.TrackEvent(GetType().Name, "NavigatedTo");

            try
            {
                NavigationMode navigationMode = parameters.GetValue <NavigationMode>("NavigationMode");

                if (navigationMode == NavigationMode.Back)
                {
                    connection.Dispose();

                    // Make sure everything is clean
                    SettingsService.Clean();

                    //GC.Collect();
                }
            }
            catch (Exception e)
            {
                Debug.WriteLine(e);
            }
        }
Example #2
0
 public void OnNavigatedFrom(NavigationParameters parameters)
 {
     MobileCenterService.TrackEvent(GetType().Name, "NavigatedFrom");
 }