public override void GenerateAndInsertThumbnail(Photo photo, Size thumbSize)
 {
     using (this.client = new MyGalleryProviderClient())
     {
         this.client.GenerateAndInsertThumbnail(photo, thumbSize);
     }
 }
 public override byte[] GetPhoto(int photoID)
 {
     using (this.client = new MyGalleryProviderClient())
     {
         return this.client.GetPhoto(photoID);
     }
 }
 public override bool DeleteAlbum(int albumID)
 {
     using (this.client = new MyGalleryProviderClient())
     {
         return this.client.DeleteAlbum(albumID);
     }
 }
 public override bool DeletePhoto(int photoID)
 {
     using (this.client = new MyGalleryProviderClient())
     {
         return this.client.DeletePhoto(photoID);
     }
 }
 public override int ActivateAcc(string activationGuid)
 {
     using (this.client = new MyGalleryProviderClient())
     {
         return this.client.ActivateAcc(activationGuid);
     }
 }
 public override bool CreateAlbum(string album, string description, string userName)
 {
     using (this.client = new MyGalleryProviderClient())
     {
         return this.client.CreateAlbum(album, description, userName);
     }
 }
 public override bool ImageUpload(Model.UploadImage imageDetails)
 {
     using (this.client = new MyGalleryProviderClient())
     {
         return this.client.ImageUpload(imageDetails);
     }
 }
 public override byte[] GetThumbnail(int albumID, int photoID)
 {
     using (this.client = new MyGalleryProviderClient())
     {
         return this.client.GetThumbnail(albumID, photoID);
     }
 }
 public override List<Photo> ShowPublicAlbum(int albumID)
 {
     using (this.client = new MyGalleryProviderClient())
     {
         return this.client.ShowPublicAlbum(albumID).ToList();
     }
 }
示例#10
0
 public override List<Album> ShowOnlyPublic()
 {
     using (this.client = new MyGalleryProviderClient())
     {
         return this.client.ShowOnlyPublic().ToList();
     }
 }
示例#11
0
 public override List<Album> ShowGallery(string userName)
 {
     using (this.client = new MyGalleryProviderClient())
     {
         return this.client.ShowGallery(userName).ToList();
     }
 }
示例#12
0
 public override List<Photo> ShowAlbum(int albumID, string userName)
 {
     using (this.client = new MyGalleryProviderClient())
     {
         return this.client.ShowAlbum(albumID, userName).ToList();
     }
 }
示例#13
0
 public override List<Photo> PhotosWithoutThumb()
 {
     using (this.client = new MyGalleryProviderClient())
     {
         return this.client.PhotosWithoutThumb().ToList();
     }
 }