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