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; } }
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; } }