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