private static SetupAdItem[] GetInfo(SetupElectedPageBannerAdPage 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(SetupElectedPageBannerAdPage page) // ReSharper restore UnusedMember.Local { page._SetupAdDialogInfo = GetInfo(page); }
private SetupAdItem(SetupElectedPageBannerAdPage page) : base(GroupName) { ThisPage = page; }