Example #1
0
		protected void successCallback(PhotoResult result, object pageNumber, string methodName)
		{
			CurrentPhotoSet = result;
			storePhotosInCache(CurrentPhotoSet, (int)pageNumber);
			if (DoPostLoadPhotoSetActions != null)
				DoPostLoadPhotoSetActions(this, EventArgs.Empty);
		}
Example #2
0
		protected abstract bool storePhotosInCache(PhotoResult photoSet, int pageNumber);
Example #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;
		}
Example #4
0
		protected override bool storePhotosInCache(PhotoResult photoSet, int pageNumber)
		{
			videos[pageNumber] = photoSet;
			return true;
		}
Example #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;
		}