protected AdjustIncumbentsTabItem(UpdateElectionsPage page)
     : base(page, GroupName)
 {
 }
 internal AdjustIncumbentsListTabItem(UpdateElectionsPage page)
     : base(page)
 {
 }
Example #3
0
 private AddOfficesTabItem(UpdateElectionsPage page) : base(page, GroupName)
 {
 }
 internal ReinstateIncumbentsListTabItem(UpdateElectionsPage page)
     : base(page)
 {
 }
Example #5
0
 internal MasterOnlyElectionToCopyTabItem(UpdateElectionsPage page)
     : base(page)
 {
 }
Example #6
0
            private static StateDefaultsTabItem[] GetTabInfo(UpdateElectionsPage page)
            {
                var changeInfoTabInfo = new[]
                {
                    new StateDefaultsTabItem(page)
                    {
                        Column      = "ElectionAdditionalInfo",
                        Description = "Additional Election Information"
                    },
                    new StateDefaultsTabItem(page)
                    {
                        Column      = "BallotInstructions",
                        Description = "Special Ballot Instructions"
                    },
                    new StateDefaultsTabItem(page)
                    {
                        Column      = "RegistrationDeadline",
                        Description = "Registration Deadline",
                        ConvertFn   = ToDateTime,
                        Validator   = ValidateDateOptional
                    },
                    new StateDefaultsTabItem(page)
                    {
                        Column      = "EarlyVotingBegin",
                        Description = "Early Voting Begin Date",
                        ConvertFn   = ToDateTime,
                        Validator   = ValidateDateOptional
                    },
                    new StateDefaultsTabItem(page)
                    {
                        Column      = "EarlyVotingEnd",
                        Description = "Early Voting End Date",
                        ConvertFn   = ToDateTime,
                        Validator   = ValidateDateOptional
                    },
                    new StateDefaultsTabItem(page)
                    {
                        Column      = "MailBallotBegin",
                        Description = "Mail Ballot Begin Date",
                        ConvertFn   = ToDateTime,
                        Validator   = ValidateDateOptional
                    },
                    new StateDefaultsTabItem(page)
                    {
                        Column      = "MailBallotEnd",
                        Description = "Mail Ballot End Date",
                        ConvertFn   = ToDateTime,
                        Validator   = ValidateDateOptional
                    },
                    new StateDefaultsTabItem(page)
                    {
                        Column      = "MailBallotDeadline",
                        Description = "Mail Ballot Must Be Received By",
                        ConvertFn   = ToDateTime,
                        Validator   = ValidateDateOptional
                    },
                    new StateDefaultsTabItem(page)
                    {
                        Column      = "AbsenteeBallotBegin",
                        Description = "Absentee Ballot Begin Date",
                        ConvertFn   = ToDateTime,
                        Validator   = ValidateDateOptional
                    },
                    new StateDefaultsTabItem(page)
                    {
                        Column      = "AbsenteeBallotEnd",
                        Description = "Absentee Ballot End Date",
                        ConvertFn   = ToDateTime,
                        Validator   = ValidateDateOptional
                    },
                    new StateDefaultsTabItem(page)
                    {
                        Column      = "AbsenteeBallotDeadline",
                        Description = "Absentee Ballot Must Be Received By",
                        ConvertFn   = ToDateTime,
                        Validator   = ValidateDateOptional
                    }
                };

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

                InitializeGroup(page, GroupName);

                return(changeInfoTabInfo);
            }
Example #7
0
 internal MasterOnlyCreateGeneralTabItem(UpdateElectionsPage page) : base(page)
 {
 }
Example #8
0
 protected IdentifyWinnersBetaTabItem(UpdateElectionsPage page) : base(page, GroupName)
 {
 }
Example #9
0
 internal MasterOnlyRunoffAdvancersTabItem(UpdateElectionsPage page) : base(page)
 {
 }
Example #10
0
 internal MasterOnlyDeleteElectionTabItem(UpdateElectionsPage page) : base(page)
 {
 }
            private static ChangeDeadlinesTabItem[] GetTabInfo(UpdateElectionsPage page)
            {
                var changeDeadlinesTabInfo = new[]
                {
                    new ChangeDeadlinesElectionOrderTabItem(page)
                    {
                        Column      = "ElectionOrder",
                        Description = "Election Order"
                    },
                    new ChangeDeadlinesTabItem(page)
                    {
                        Column      = "RegistrationDeadline",
                        Description = "Registration Deadline",
                        ConvertFn   = ToDateTime,
                        Validator   = ValidateDateOptional
                    },
                    new ChangeDeadlinesTabItem(page)
                    {
                        Column      = "EarlyVotingBegin",
                        Description = "Early Voting Begin Date",
                        ConvertFn   = ToDateTime,
                        Validator   = ValidateDateOptional
                    },
                    new ChangeDeadlinesTabItem(page)
                    {
                        Column      = "EarlyVotingEnd",
                        Description = "Early Voting End Date",
                        ConvertFn   = ToDateTime,
                        Validator   = ValidateDateOptional
                    },
                    new ChangeDeadlinesTabItem(page)
                    {
                        Column      = "MailBallotBegin",
                        Description = "Mail Ballot Begin Date",
                        ConvertFn   = ToDateTime,
                        Validator   = ValidateDateOptional
                    },
                    new ChangeDeadlinesTabItem(page)
                    {
                        Column      = "MailBallotEnd",
                        Description = "Mail Ballot End Date",
                        ConvertFn   = ToDateTime,
                        Validator   = ValidateDateOptional
                    },
                    new ChangeDeadlinesTabItem(page)
                    {
                        Column      = "MailBallotDeadline",
                        Description = "Mail Ballot Must Be Received By",
                        ConvertFn   = ToDateTime,
                        Validator   = ValidateDateOptional
                    },
                    new ChangeDeadlinesTabItem(page)
                    {
                        Column      = "AbsenteeBallotBegin",
                        Description = "Absentee Ballot Begin Date",
                        ConvertFn   = ToDateTime,
                        Validator   = ValidateDateOptional
                    },
                    new ChangeDeadlinesTabItem(page)
                    {
                        Column      = "AbsenteeBallotEnd",
                        Description = "Absentee Ballot End Date",
                        ConvertFn   = ToDateTime,
                        Validator   = ValidateDateOptional
                    },
                    new ChangeDeadlinesTabItem(page)
                    {
                        Column      = "AbsenteeBallotDeadline",
                        Description = "Absentee Ballot Must Be Received By",
                        ConvertFn   = ToDateTime,
                        Validator   = ValidateDateOptional
                    }
                };

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

                InitializeGroup(page, GroupName);

                return(changeDeadlinesTabInfo);
            }
 protected ChangeDeadlinesTabItem(UpdateElectionsPage page) : base(page, GroupName)
 {
 }
 internal ChangeDeadlinesElectionOrderTabItem(UpdateElectionsPage page) : base(page)
 {
 }
Example #14
0
 private SelectBallotMeasureControlItem(UpdateElectionsPage page) : base(page,
                                                                         GroupName)
 {
 }
Example #15
0
 protected MasterOnlyTabItem(UpdateElectionsPage page) : base(page, GroupName)
 {
 }
Example #16
0
 // ReSharper disable UnusedMember.Local
 // Invoked via Reflection
 internal static void Initialize(UpdateElectionsPage page)
 // ReSharper restore UnusedMember.Local
 => page._SelectBallotMeasureControlInfo = GetTabInfo(page);
Example #17
0
            private static MasterOnlyTabItem[] GetTabInfo(UpdateElectionsPage page)
            {
                var masterOnlyTabInfo = new[]
                {
                    new MasterOnlyTabItem(page)
                    {
                        Column      = "ElectionDesc",
                        Description = "Election Title",
                        Validator   = ValidateDescription,
                        SubTab      = MasterOnlySubTab.ChangeDate
                    },
                    new MasterOnlyElectionDateTabItem(page)
                    {
                        Column      = "ElectionDate",
                        Description = "Election Date",
                        ConvertFn   = ToDateTime,
                        Validator   = ValidateDate,
                        SubTab      = MasterOnlySubTab.ChangeDate
                    },
                    new MasterOnlyTabItem(page)
                    {
                        Column      = "ElectionKeyToInclude",
                        Description = "Election to Include",
                        SubTab      = MasterOnlySubTab.IncludeElection
                    },
                    new MasterOnlyElectionToCopyTabItem(page)
                    {
                        Column      = "ElectionToCopy",
                        Description = "Election to Copy",
                        SubTab      = MasterOnlySubTab.CopyCandidates
                    },
                    new MasterOnlyPrimaryWinnersCopyTabItem(page)
                    {
                        Column      = "PrimaryDateToCopy",
                        Description = "Primary Date to Copy",
                        SubTab      = MasterOnlySubTab.CopyPrimaryWinners
                    },
                    new MasterOnlyPrimaryWinnersCopyTabItem(page)
                    {
                        Column      = "EnableCopyPrimaryWinners",
                        Description = "Enable Update",
                        ConvertFn   = ToBool,
                        SubTab      = MasterOnlySubTab.CopyPrimaryWinners
                    },
                    new MasterOnlyPrimaryWinnersCopyTabItem(page)
                    {
                        Column      = "RunoffDateToCopy",
                        Description = "Runoff Date to Copy",
                        SubTab      = MasterOnlySubTab.CopyPrimaryWinners
                    },
                    new MasterOnlyRunoffAdvancersTabItem(page)
                    {
                        Column      = "ElectionDateToCopy",
                        Description = "Election Date to Copy",
                        SubTab      = MasterOnlySubTab.CopyRunoffAdvancers
                    },
                    new MasterOnlyDeleteElectionTabItem(page)
                    {
                        Column      = "DeleteElection",
                        Description = "Delete Election",
                        ConvertFn   = ToBool,
                        SubTab      = MasterOnlySubTab.DeleteElection
                    },
                    new MasterOnlyCreateGeneralTabItem(page)
                    {
                        Column      = "GeneralElectionDate",
                        Description = "Election Date",
                        SubTab      = MasterOnlySubTab.CreateGeneral
                    },
                    new MasterOnlyCreateGeneralTabItem(page)
                    {
                        Column      = "GeneralElectionDesc",
                        Description = "Election Title",
                        Validator   = ValidateDescription,
                        SubTab      = MasterOnlySubTab.CreateGeneral
                    },
                    new MasterOnlyCreateGeneralTabItem(page)
                    {
                        Column      = "GeneralPastElection",
                        Description = "Allow Past Election",
                        SubTab      = MasterOnlySubTab.CreateGeneral
                    },
                    new MasterOnlyCreateGeneralTabItem(page)
                    {
                        Column      = "GeneralIncludePresident",
                        Description = "Include US President",
                        SubTab      = MasterOnlySubTab.CreateGeneral
                    },
                    new MasterOnlyTabItem(page)
                    {
                        Column      = "ElectionStatus",
                        Description = "Status Notes",
                        SubTab      = MasterOnlySubTab.StatusNotes
                    }
                };

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

                InitializeGroup(page, GroupName);

                return(masterOnlyTabInfo);
            }
Example #18
0
 internal IdentifyWinnersBetaOfficeTreeTabItem(UpdateElectionsPage page) : base(page)
 {
 }
 public SelectElectionControlItem(UpdateElectionsPage page, string groupName) :
     base(page, groupName)
 {
 }
Example #20
0
 internal MasterOnlyPrimaryWinnersCopyTabItem(UpdateElectionsPage page)
     : base(page)
 {
 }
Example #21
0
 private StateDefaultsTabItem(UpdateElectionsPage page) : base(GroupName)
 {
     _Page = page;
 }