Пример #1
0
 private GeneralVoterInfoTabItem(UpdateJurisdictionsPage page)
     : base(page, GroupName)
 {
 }
Пример #2
0
 protected JurisdictionsDataItem(UpdateJurisdictionsPage page,
                                 string groupName) : base(groupName)
 {
     Page = page;
 }
Пример #3
0
 private TigerSettingsTabItem(UpdateJurisdictionsPage page)
     : base(page, GroupName)
 {
 }
Пример #4
0
            //private MasterOnlySubTab SubTab { get; set; }

            protected MasterOnlyTabItem(UpdateJurisdictionsPage page) : base(page, GroupName)
            {
            }
            private static ElectionAuthorityTabItem[] GetTabInfo(UpdateJurisdictionsPage page)
            {
                var electionAuthorityTabInfo = new[]
                {
                    new ElectionAuthorityTabItem(page)
                    {
                        Column      = "JurisdictionName",
                        Description = "Jurisdiction Name",
                        Validator   = ValidateRequired
                    },
                    new ElectionAuthorityTabItem(page)
                    {
                        Column           = "Url",
                        Description      = "Web Address",
                        Validator        = ValidateWebAddress,
                        LabelIsHyperLink = true
                    },
                    new ElectionAuthorityTabItem(page)
                    {
                        Column        = "Email",
                        Description   = "Email Address for Voters",
                        Validator     = ValidateEmail,
                        LabelIsMailTo = true
                    },
                    new ElectionAuthorityTabItem(page)
                    {
                        Column      = "Contact",
                        Description = "Main Contact Name"
                    },
                    new ElectionAuthorityTabItem(page)
                    {
                        Column      = "ContactTitle",
                        Description = "Main Contact Title"
                    },
                    new ElectionAuthorityTabItem(page)
                    {
                        Column      = "Phone",
                        Description = "Main Contact Phone"
                    },
                    new ElectionAuthorityContactEmailTabItem(page)
                    {
                        Column        = "ContactEmail",
                        Description   = "Main Contact Email",
                        Validator     = ValidateEmail,
                        LabelIsMailTo = true
                    },
                    new ElectionAuthorityTabItem(page)
                    {
                        Column      = "AltContact",
                        Description = "Alternate Contact Name"
                    },
                    new ElectionAuthorityTabItem(page)
                    {
                        Column      = "AltContactTitle",
                        Description = "Alternate Contact Title"
                    },
                    new ElectionAuthorityTabItem(page)
                    {
                        Column      = "AltPhone",
                        Description = "Alternate Contact Phone"
                    },
                    new ElectionAuthorityContactEmailTabItem(page)
                    {
                        Column        = "AltEmail",
                        Description   = "Alternate Contact Email",
                        Validator     = ValidateEmail,
                        LabelIsMailTo = true
                    },
                    new ElectionAuthorityTabItem(page)
                    {
                        Column      = "AddressLine1",
                        Description = "Mailing Address Line 1"
                    },
                    new ElectionAuthorityTabItem(page)
                    {
                        Column      = "AddressLine2",
                        Description = "Mailing Address Line 2"
                    },
                    new ElectionAuthorityTabItem(page)
                    {
                        Column      = "CityStateZip",
                        Description = "Mailing Address City State Zip"
                    },
                    new ElectionAuthorityTabItem(page)
                    {
                        Column = "Notes", Description = "Notes"
                    }
                };

                foreach (var item in electionAuthorityTabInfo)
                {
                    item.InitializeItem(page);
                }

                InitializeGroup(page, GroupName);

                return(electionAuthorityTabInfo);
            }
Пример #6
0
 private BallotTabItem(UpdateJurisdictionsPage page)
     : base(page, GroupName)
 {
 }
 public ElectionAuthorityContactEmailTabItem(UpdateJurisdictionsPage page) : base(page)
 {
 }
Пример #8
0
 private SetupSchoolDistrictTabItem(UpdateJurisdictionsPage page) : base(page,
                                                                         GroupName)
 {
 }
Пример #9
0
 private DeleteDistrictsTabItem(UpdateJurisdictionsPage page) : base(page, GroupName)
 {
 }
Пример #10
0
 // ReSharper disable UnusedMember.Local
 // Invoked via Reflection
 internal static void Initialize(UpdateJurisdictionsPage page)
 // ReSharper restore UnusedMember.Local
 => page._ElectionAuthorityTabInfo = GetTabInfo(page);
Пример #11
0
 private SetupCityCouncilTabItem(UpdateJurisdictionsPage page) : base(page, GroupName)
 {
 }
Пример #12
0
 private RemoveMultiCountyDistrictsTabItem(UpdateJurisdictionsPage page)
     : base(page, GroupName)
 {
 }
Пример #13
0
 private SetupCountySupervisorsTabItem(UpdateJurisdictionsPage page) : base(page,
                                                                            GroupName)
 {
 }
Пример #14
0
 protected AllJurisdictionsDataItem(UpdateJurisdictionsPage page,
                                    string groupName) : base(page, groupName)
 {
 }
Пример #15
0
 protected ElectionAuthorityTabItem(UpdateJurisdictionsPage page) : base(page,
                                                                         GroupName)
 {
 }
Пример #16
0
 private VoterUrlsTabItem(UpdateJurisdictionsPage page)
     : base(page, GroupName)
 {
 }
Пример #17
0
            private static BulkAddDistrictsTabItem[] GetTabInfo(
                UpdateJurisdictionsPage page)
            {
                var bulkAddDistrictsTabInfo = new[]
                {
                    new BulkAddDistrictsTabItem(page)
                    {
                        Column      = "LocalDistrict",
                        Description = "Local District Name Template",
                        Validator   = item =>
                        {
                            // Special validator:
                            // ValidateTitleCaseRequired plus must contain exactly one *
                            if (!ValidateTitleCaseRequired(item))
                            {
                                return(false);
                            }
                            if (Regex.Matches(item.DataControl.GetValue(), @"\*").Count == 1)
                            {
                                return(true);
                            }
                            item.Feedback.PostValidationError(item.DataControl,
                                                              "The template must contain exactly one asterisk");
                            return(false);
                        }
                    },
                    new BulkAddDistrictsTabItem(page)
                    {
                        // bulk add not available in phase 3
                        Column      = "LocalCode",
                        Description = "Local Code"/*,
                                                   * Validator = ValidateLocalCodeOptional*/
                    },
                    new BulkAddDistrictsTabItem(page)
                    {
                        Column      = "Override",
                        Description = "Add Conflicted District",
                        ConvertFn   = ToBool
                    },
                    new BulkAddDistrictsTabItem(page)
                    {
                        Column      = "StartSequence",
                        Description = "Starting Sequence Number",
                        Validator   = ValidateNumeric,
                        ConvertFn   = ToInt
                    },
                    new BulkAddDistrictsTabItem(page)
                    {
                        Column      = "EndSequence",
                        Description = "Ending Sequence Number",
                        Validator   = ValidateNumeric,
                        ConvertFn   = ToInt
                    }
                };

                foreach (var item in bulkAddDistrictsTabInfo)
                {
                    item.InitializeItem(page);
                }

                InitializeGroup(page, GroupName);

                return(bulkAddDistrictsTabInfo);
            }