コード例 #1
0
		protected void successCallback(PhotoResult result, object pageNumber, string methodName)
		{
			CurrentPhotoSet = result;
			storePhotosInCache(CurrentPhotoSet, (int)pageNumber);
			if (DoPostLoadPhotoSetActions != null)
				DoPostLoadPhotoSetActions(this, EventArgs.Empty);
		}
コード例 #2
0
		protected abstract bool storePhotosInCache(PhotoResult photoSet, int pageNumber);
コード例 #3
0
		protected override bool storePhotosInCache(PhotoResult photoSet, int pageNumber)
		{
			if (this.key > 0)
			{
				if (photoSets[key] == null)
					photoSets[key] = new Array();
				((Array)photoSets[key])[pageNumber] = photoSet;
				return true;
			}
			return false;
		}
コード例 #4
0
		protected override bool storePhotosInCache(PhotoResult photoSet, int pageNumber)
		{
			videos[pageNumber] = photoSet;
			return true;
		}
コード例 #5
0
		protected override bool storePhotosInCache(PhotoResult photos, int pageNumber)
		{
			if (galleryK > 0)
			{
				if (photoSetsByGalleryK[galleryK] == null)
					photoSetsByGalleryK[galleryK] = new Array();
				((Array)photoSetsByGalleryK[galleryK])[pageNumber] = photos;
				return true;
			}
			if (eventK > 0)
			{
				if (photoSetsByEventK[eventK] == null)
					photoSetsByEventK[eventK] = new Array();
				((Array)photoSetsByEventK[eventK])[pageNumber] = photos;
				return true;
			}
			return false;
		}