Esempio n. 1
0
 private WindowProfile LoadProfileFromLocalStorage(string profileName, bool fromBackup = false)
 {
     try
     {
         var path    = fromBackup ? GetProfileBackupFullPath(profileName) : GetProfileFullPath(profileName);
         var payload = LayoutPayloadUtilities.FileToPayloadData(path);
         return(new WindowProfile(profileName, payload));
     }
     catch
     {
         return(null);
     }
 }