private static UploadImageItem[] GetInfo(UploadImagesPage page) { var UploadImageInfo = new[] { new UploadImageItem(page) { Column = "ExternalName", Description = "External Name", Validator = ValidateRequired }, new UploadImageItem(page) { Column = "FileName", Description = "Uploaded File Name" }, new UploadImageItem(page) { Column = "ImageType", Description = "Uploaded Image Type" }, new UploadImageItem(page) { Column = "Comments", Description = "Comments" }, new UploadImageItem(page) { Column = "ImageChanged", ConvertFn = ToBool }, new UploadImageItem(page) { Column = "ImageUpdated", ConvertFn = ToBool }, new UploadImageItem(page) { Column = "ImageId", ConvertFn = ToInt }, new UploadImageItem(page) { Column = "DeleteImage", ConvertFn = ToBool } }; foreach (var item in UploadImageInfo) { item.InitializeItem(page); } InitializeGroup(page, GroupName); return(UploadImageInfo); }
private UploadImageItem(UploadImagesPage page) : base(GroupName) { ThisPage = page; }
// ReSharper disable UnusedMember.Local // Invoked via Reflection internal static void Initialize(UploadImagesPage page) // ReSharper restore UnusedMember.Local { page._UploadImageDialogInfo = GetInfo(page); }