Exemplo n.º 1
0
            private static SetupAdItem[] GetInfo(SetupBallotPageBannerAdPage 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);
            }
Exemplo n.º 2
0
 // ReSharper disable UnusedMember.Local
 // Invoked via Reflection
 internal static void Initialize(SetupBallotPageBannerAdPage page)
 // ReSharper restore UnusedMember.Local
 {
     page._SetupAdDialogInfo = GetInfo(page);
 }
Exemplo n.º 3
0
 private SetupAdItem(SetupBallotPageBannerAdPage page) :
     base(GroupName)
 {
     ThisPage = page;
 }