private static SetupAdItem[] GetInfo(SetupHomePageBannerAdPage page) { var setupAdInfo = new[] { new SetupAdItem(page) { Column = "AdUrl", Description = "Ad URL", Validator = ValidateWebAddressRequired }, new SetupAdItem(page) { Column = "AdImageName", Description = "Name of Ad Image File" }, new SetupAdItem(page) { Column = "AdImageChanged", ConvertFn = ToBool }, new SetupAdItem(page) { Column = "AdEnabled", Description = "Ad Enabled", ConvertFn = ToBool } }; foreach (var item in setupAdInfo) { item.InitializeItem(page); } InitializeGroup(page, GroupName); return(setupAdInfo); }
// ReSharper disable UnusedMember.Local // Invoked via Reflection internal static void Initialize(SetupHomePageBannerAdPage page) // ReSharper restore UnusedMember.Local { page._SetupAdDialogInfo = GetInfo(page); }
private SetupAdItem(SetupHomePageBannerAdPage page) : base(GroupName) { ThisPage = page; }