void link_ContentChanged(object sender, ContentChangedEventArgs e) { IndexBuilderProvider indexBuilder = IndexBuilderManager.Providers["SuperFlexiIndexBuilderProvider"]; if (indexBuilder != null) { indexBuilder.ContentChangedHandler(sender, e); } }
//private void btnUpdate_Click(object sender, EventArgs e) //{ // if (!Page.IsValid) return; // GalleryImage galleryImage; // if(moduleId > -1) // { // if(itemId > -1) // { // galleryImage = new GalleryImage(moduleId, itemId); // } // else // { // galleryImage = new GalleryImage(moduleId); // } // if (galleryImage.ModuleId != moduleId) // { // SiteUtils.RedirectToAccessDeniedPage(this); // return; // } // Module module = GetModule(moduleId, Gallery.FeatureGuid); // galleryImage.ModuleGuid = module.ModuleGuid; // galleryImage.ContentChanged += new ContentChangedEventHandler(galleryImage_ContentChanged); // int displayOrder; // if (!Int32.TryParse(txtDisplayOrder.Text, out displayOrder)) // { // displayOrder = -1; // } // if (displayOrder > -1) // { // galleryImage.DisplayOrder = displayOrder; // } // galleryImage.WebImageHeight = config.WebSizeHeight; // galleryImage.WebImageWidth = config.WebSizeWidth; // galleryImage.ThumbNailHeight = config.ThumbnailHeight; // galleryImage.ThumbNailWidth = config.ThumbnailWidth; // galleryImage.Description = edDescription.Text; // galleryImage.Caption = txtCaption.Text; // galleryImage.UploadUser = Context.User.Identity.Name; // SiteUser siteUser = SiteUtils.GetCurrentSiteUser(); // if (siteUser != null) galleryImage.UserGuid = siteUser.UserGuid; // if (flImage.HasFile && flImage.FileName != null && flImage.FileName.Trim().Length > 0) // { // string ext = Path.GetExtension(flImage.FileName); // if (!SiteUtils.IsAllowedUploadBrowseFile(ext, ".jpg|.gif|.png|.jpeg")) // { // lblMessage.Text = GalleryResources.InvalidFile; // flImage.Dispose(); // return; // } // string newFileName = Path.GetFileName(flImage.FileName).ToCleanFileName(WebConfigSettings.ForceLowerCaseForUploadedFiles); // string newImagePath = VirtualPathUtility.Combine(fullSizeImageFolderPath, newFileName); // if (galleryImage.ImageFile == newFileName) // { // // an existing gallery image delete the old one // fileSystem.DeleteFile(newImagePath); // } // else // { // // this is a new galleryImage instance, make sure we don't use the same file name as any other instance // int i = 1; // while (fileSystem.FileExists(VirtualPathUtility.Combine(fullSizeImageFolderPath, newFileName))) // { // newFileName = i.ToInvariantString() + newFileName; // i += 1; // } // } // newImagePath = VirtualPathUtility.Combine(fullSizeImageFolderPath, newFileName); // if (galleryImage.ItemId > -1) // { // //updating with a new image so delete the previous version // GalleryHelper.DeleteImages(galleryImage, fileSystem, imageFolderPath); // } // using (flImage) // { // using (Stream s = flImage.FileContent) // { // fileSystem.SaveFile(newImagePath, s, flImage.ContentType, true); // } // } // galleryImage.ImageFile = newFileName; // galleryImage.WebImageFile = newFileName; // galleryImage.ThumbnailFile = newFileName; // galleryImage.Save(); // GalleryHelper.ProcessImage(galleryImage, fileSystem, imageFolderPath, flImage.FileName, config.ResizeBackgroundColor); // CurrentPage.UpdateLastModifiedTime(); // CacheHelper.ClearModuleCache(moduleId); // SiteUtils.QueueIndexing(); // if (hdnReturnUrl.Value.Length > 0) // { // WebUtils.SetupRedirect(this, hdnReturnUrl.Value); // return; // } // } // else // { //updating a previously uploaded image // if(itemId > -1) // { // if(galleryImage.Save()) // { // CurrentPage.UpdateLastModifiedTime(); // CacheHelper.ClearModuleCache(moduleId); // SiteUtils.QueueIndexing(); // if (hdnReturnUrl.Value.Length > 0) // { // WebUtils.SetupRedirect(this, hdnReturnUrl.Value); // return; // } // WebUtils.SetupRedirect(this, SiteUtils.GetCurrentPageUrl()); // } // } // } // } //} void galleryImage_ContentChanged(object sender, ContentChangedEventArgs e) { IndexBuilderProvider indexBuilder = IndexBuilderManager.Providers["GalleryImageIndexBuilderProvider"]; if (indexBuilder != null) { indexBuilder.ContentChangedHandler(sender, e); } }
void calendarEvent_ContentChanged(object sender, ContentChangedEventArgs e) { IndexBuilderProvider indexBuilder = IndexBuilderManager.Providers["CalendarEventIndexBuilderProvider"]; if (indexBuilder != null) { indexBuilder.ContentChangedHandler(sender, e); } }
void sharedFile_ContentChanged(object sender, ContentChangedEventArgs e) { IndexBuilderProvider indexBuilder = IndexBuilderManager.Providers["SharedFilesIndexBuilderProvider"]; if (indexBuilder != null) { indexBuilder.ContentChangedHandler(sender, e); } }
void coursemodulepage_ContentChanged(object sender, ContentChangedEventArgs e) { IndexBuilderProvider indexBuilder = IndexBuilderManager.Providers["BrowseCoursesIndexBuilderProvider"]; if (indexBuilder != null) { indexBuilder.ContentChangedHandler(sender, e); } }
void product_ContentChanged(object sender, ContentChangedEventArgs e) { IndexBuilderProvider indexBuilder = IndexBuilderManager.Providers["WebStoreProductIndexBuilderProvider"]; if (indexBuilder != null) { indexBuilder.ContentChangedHandler(sender, e); } }
void topic_ContentChanged(object sender, ContentChangedEventArgs e) { IndexBuilderProvider indexBuilder = IndexBuilderManager.Providers["GroupTopicIndexBuilderProvider"]; if (indexBuilder != null) { indexBuilder.ContentChangedHandler(sender, e); } }
void thread_ContentChanged(object sender, ContentChangedEventArgs e) { IndexBuilderProvider indexBuilder = IndexBuilderManager.Providers["ForumThreadIndexBuilderProvider"]; if (indexBuilder != null) { indexBuilder.ContentChangedHandler(sender, e); } }