Ejemplo n.º 1
0
 public HistoryHandler()
 {
     //get existing searchhistory if exists and set it to the local property
     DataAccess.IsoStorageHelper iHelper = new IsoStorageHelper();
     if (iHelper.settings.Contains(Constants.IsolatedStorage.ISO_PREVIOUS_SEARCHES))
     {
         _search = (List<Model.Item>)iHelper.settings[Constants.IsolatedStorage.ISO_PREVIOUS_SEARCHES];
     }
     else
     {
         iHelper.settings[Constants.IsolatedStorage.ISO_PREVIOUS_SEARCHES] = _search;
     }
 }
Ejemplo n.º 2
0
 public FavoriteHandler()
 {
     //get existing favorites if they exist - otherwise, create the iso key
     DataAccess.IsoStorageHelper iHelper = new IsoStorageHelper();
     if (iHelper.settings.Contains(Constants.IsolatedStorage.ISO_FAVORITES))
     {
         _favorite = (List<Model.Item>)iHelper.settings[Constants.IsolatedStorage.ISO_FAVORITES];
     }
     else
     {
         iHelper.settings[Constants.IsolatedStorage.ISO_FAVORITES] = _favorite;
         
     }
 }