public SlideShow GetSlideShow() { if (this.slideShow == null) { try { SlideShow slideShow; if (this.friendlyName != null) { slideShow = SlideShow.LoadFromFriendlyName(this.friendlyName); } else { slideShow = SlideShow.LoadFromDb(this.referenceHash, this.referenceGuid); } if (slideShow != null && !String.IsNullOrEmpty(slideShow.Pin)) { if (this.pin != slideShow.Pin) { slideShow = null; } } this.slideShow = slideShow; } catch (Exception) { } } return(this.slideShow); }