示例#1
0
            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);
            }
示例#2
0
 private UploadImageItem(UploadImagesPage page) :
     base(GroupName)
 {
     ThisPage = page;
 }
示例#3
0
 // ReSharper disable UnusedMember.Local
 // Invoked via Reflection
 internal static void Initialize(UploadImagesPage page)
 // ReSharper restore UnusedMember.Local
 {
     page._UploadImageDialogInfo = GetInfo(page);
 }