Ejemplo n.º 1
0
 public override Task OnNavigatedFromAsync(IDictionary <string, object> state, bool suspending)
 {
     try
     {
         state[nameof(Username)]          = Username;
         state[nameof(NpcommunicationId)] = NpcommunicationId;
         state[nameof(TrophyName)]        = TrophyName;
     }
     catch (Exception ex)
     {
         ResultChecker.LogEvent("SerializeError", new Dictionary <string, string>()
         {
             { "serialization", ex.Message }
         });
     }
     return(Task.CompletedTask);
 }
 public override Task OnNavigatedFromAsync(IDictionary <string, object> state, bool suspending)
 {
     Template10.Common.BootStrapper.Current.NavigationService.FrameFacade.BackRequested -= MasterDetailViewControl.NavigationManager_BackRequested;
     try
     {
         if (Selected != null)
         {
             state["Friend"] = JsonConvert.SerializeObject(Selected);
         }
     }
     catch (Exception ex)
     {
         ResultChecker.LogEvent("SerializeError", new Dictionary <string, string>()
         {
             { "serialization", ex.Message }
         });
     }
     return(Task.CompletedTask);
 }