示例#1
0
        public static TimerBaseForm CreateForType(TimerFormType timerFormType, Worksheet sheet, string title)
        {
            TimerBaseForm timerBase = new TimerBaseForm {
                Text = title
            };

            switch (timerFormType)
            {
            case TimerFormType.CHECKIN:
                timerBase.SetupCheckinTimersForm(sheet);
                break;

            case TimerFormType.CHECKIN_ARRIVAL:
                timerBase.SetupCheckinArrivalTimersForm(sheet);
                break;

            case TimerFormType.VOTING_BOOTH:
                timerBase.SetupVotingBoothTimersForm(sheet);
                break;

            case TimerFormType.BMD:
                timerBase.SetupBMDTimersForm(sheet);
                break;

            case TimerFormType.BALLOT_SCANNING:
                timerBase.SetupBallotScanningTimersForm(sheet);
                break;

            case TimerFormType.THROUGHPUT_ARRIVAL:
                timerBase.SetupThroughputArrivalTimersForm(sheet);
                break;
            }
            return(timerBase);
        }