void ReleaseDesignerOutlets()
        {
            if (AdditionalPhotosContainer != null)
            {
                AdditionalPhotosContainer.Dispose();
                AdditionalPhotosContainer = null;
            }

            if (carLooklabel != null)
            {
                carLooklabel.Dispose();
                carLooklabel = null;
            }

            if (PhotosContainer != null)
            {
                PhotosContainer.Dispose();
                PhotosContainer = null;
            }

            if (PhotosSaveBtn != null)
            {
                PhotosSaveBtn.Dispose();
                PhotosSaveBtn = null;
            }

            if (PhotosSegment != null)
            {
                PhotosSegment.Dispose();
                PhotosSegment = null;
            }
        }
Example #2
0
 /// <summary>
 /// Initialize the photo model
 /// </summary>
 public void Initialize()
 {
     this.photosContainer = new PhotosContainer();
     this.photosList      = this.photosContainer.PhotosList;
 }
Example #3
0
 /// <summary>
 /// Converts the photo.
 /// </summary>
 /// <param name="container">The container.</param>
 /// <param name="limit">The limit.</param>
 /// <returns></returns>
 public static FacebookPhoto[] ConvertPhoto(this PhotosContainer container, int limit = 25)
 {
     return(container == null ? null : container.photos.data.ConvertPhoto().Take(limit).ToArray());
 }
Example #4
0
 /// <summary>
 /// Constructor of the photo model
 /// </summary>
 private PhotosModel()
 {
     this.photosContainer = new PhotosContainer();
     photosList           = this.photosContainer.PhotosList;
     exists = true;
 }