protected AdjustIncumbentsTabItem(UpdateElectionsPage page)
     : base(page, GroupName)
 {
 }
 internal AdjustIncumbentsListTabItem(UpdateElectionsPage page)
     : base(page)
 {
 }
Esempio n. 3
0
 private AddOfficesTabItem(UpdateElectionsPage page) : base(page, GroupName)
 {
 }
 internal ReinstateIncumbentsListTabItem(UpdateElectionsPage page)
     : base(page)
 {
 }
Esempio n. 5
0
 internal MasterOnlyElectionToCopyTabItem(UpdateElectionsPage page)
     : base(page)
 {
 }
Esempio n. 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);
            }
Esempio n. 7
0
 internal MasterOnlyCreateGeneralTabItem(UpdateElectionsPage page) : base(page)
 {
 }
Esempio n. 8
0
 protected IdentifyWinnersBetaTabItem(UpdateElectionsPage page) : base(page, GroupName)
 {
 }
Esempio n. 9
0
 internal MasterOnlyRunoffAdvancersTabItem(UpdateElectionsPage page) : base(page)
 {
 }
Esempio n. 10
0
 internal MasterOnlyDeleteElectionTabItem(UpdateElectionsPage page) : base(page)
 {
 }
Esempio n. 11
0
            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);
            }
Esempio n. 12
0
 protected ChangeDeadlinesTabItem(UpdateElectionsPage page) : base(page, GroupName)
 {
 }
Esempio n. 13
0
 internal ChangeDeadlinesElectionOrderTabItem(UpdateElectionsPage page) : base(page)
 {
 }
Esempio n. 14
0
 private SelectBallotMeasureControlItem(UpdateElectionsPage page) : base(page,
                                                                         GroupName)
 {
 }
Esempio n. 15
0
 protected MasterOnlyTabItem(UpdateElectionsPage page) : base(page, GroupName)
 {
 }
Esempio n. 16
0
 // ReSharper disable UnusedMember.Local
 // Invoked via Reflection
 internal static void Initialize(UpdateElectionsPage page)
 // ReSharper restore UnusedMember.Local
 => page._SelectBallotMeasureControlInfo = GetTabInfo(page);
Esempio n. 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);
            }
Esempio n. 18
0
 internal IdentifyWinnersBetaOfficeTreeTabItem(UpdateElectionsPage page) : base(page)
 {
 }
 public SelectElectionControlItem(UpdateElectionsPage page, string groupName) :
     base(page, groupName)
 {
 }
Esempio n. 20
0
 internal MasterOnlyPrimaryWinnersCopyTabItem(UpdateElectionsPage page)
     : base(page)
 {
 }
Esempio n. 21
0
 private StateDefaultsTabItem(UpdateElectionsPage page) : base(GroupName)
 {
     _Page = page;
 }