Esempio n. 1
0
 public override void Init(SubsystemConfig config)
 {
     _config = (ElectionManagerConfig)config;
     _votingResultManager = Application.GetSubsystemOrThrow <IVotingResultManager>();
     _recognitionManager  = Application.GetSubsystemOrThrow <IRecognitionManager>();
     _fileSystemManager   = Application.GetSubsystemOrThrow <IFileSystemManager>();
     _syncManager         = Application.GetSubsystemOrThrow <ISynchronizationManager>();
 }
Esempio n. 2
0
 public ReportBuilder( 
     IPrintingManager printingManager, 
     IElectionManager electionManager, 
     IVotingResultManager votingResultManager)
 {
     CodeContract.Requires(printingManager != null);
     CodeContract.Requires(electionManager != null);
     CodeContract.Requires(votingResultManager != null);
     _printingManager = printingManager;
     _electionManager = electionManager;
     _votingResultManager = votingResultManager;
     InitReportMap();
 }
Esempio n. 3
0
 public ReportBuilder(
     IPrintingManager printingManager,
     IElectionManager electionManager,
     IVotingResultManager votingResultManager)
 {
     CodeContract.Requires(printingManager != null);
     CodeContract.Requires(electionManager != null);
     CodeContract.Requires(votingResultManager != null);
     _printingManager     = printingManager;
     _electionManager     = electionManager;
     _votingResultManager = votingResultManager;
     InitReportMap();
 }
Esempio n. 4
0
 public override void Init(SubsystemConfig config)
 {
     _config              = (SynchronizationManagerConfig)config;
     _scannerManager      = Application.GetSubsystemOrThrow <IScannerManager>();
     _fileSystemManager   = Application.GetSubsystemOrThrow <IFileSystemManager>();
     _electionManager     = Application.GetSubsystemOrThrow <IElectionManager>();
     _votingResultManager = Application.GetSubsystemOrThrow <IVotingResultManager>();
     _printingManager     = Application.GetSubsystemOrThrow <IPrintingManager>();
     _printingManager.PrintReportStarting += (s, e) => SetPrintReportExecutingNow(true);
     _printingManager.PrintReportFinished += (s, e) => ResetPrintReportExecutingNow(true);
     InitRemoteScannerCommunication();
     InitState();
 }
Esempio n. 5
0
        protected override void Initialize(WorkflowExecutionContext context)
        {
            base.Initialize(context);
            var app = CoreApplication.Instance;

            _workflowManager     = app.GetSubsystemOrThrow <IWorkflowManager>();
            _scannerManager      = app.GetSubsystemOrThrow <IScannerManager>();
            _electionManager     = app.GetSubsystemOrThrow <IElectionManager>();
            _votingResultManager = app.GetSubsystemOrThrow <IVotingResultManager>();
            _syncManager         = app.GetSubsystemOrThrow <ISynchronizationManager>();
            _soundManager        = app.GetSubsystemOrThrow <ISoundManager>();
            _keyboard            = app.GetSubsystemOrThrow <UnionKeyboard>();
            _configManager       = app.GetSubsystemOrThrow <IConfigurationManager>();
            _fileSystemManager   = app.GetSubsystemOrThrow <IFileSystemManager>();
            _printingManager     = app.GetSubsystemOrThrow <IPrintingManager>();
            _recognitionManager  = app.GetSubsystemOrThrow <IRecognitionManager>();
            _logger = _workflowManager.Logger;
        }
Esempio n. 6
0
 public override void Init(SubsystemConfig config)
 {
     _electionManager = Application.GetSubsystemOrThrow<IElectionManager>();
     _votingResultManager = Application.GetSubsystemOrThrow<IVotingResultManager>();
     _recognitionManager = Application.GetSubsystemOrThrow<IRecognitionManager>();
     _sheetProcessingSession = SheetProcessingSession.GetClosedSheetProcessingSession(Logger);
     ApplyNewConfig(config);
 }
Esempio n. 7
0
 public override void Init(SubsystemConfig config)
 {
     _config = (PrintingManagerConfig)config;
     _electionManager = Application.GetSubsystemOrThrow<IElectionManager>();
     _votingResultManager = Application.GetSubsystemOrThrow<IVotingResultManager>();
 }
Esempio n. 8
0
 public override void Init(SubsystemConfig config)
 {
     _config              = (PrintingManagerConfig)config;
     _electionManager     = Application.GetSubsystemOrThrow <IElectionManager>();
     _votingResultManager = Application.GetSubsystemOrThrow <IVotingResultManager>();
 }
Esempio n. 9
0
 protected override void Initialize(WorkflowExecutionContext context)
 {
     base.Initialize(context);
     var app = CoreApplication.Instance;
     _workflowManager = app.GetSubsystemOrThrow<IWorkflowManager>();
     _scannerManager = app.GetSubsystemOrThrow<IScannerManager>();
     _electionManager = app.GetSubsystemOrThrow<IElectionManager>();
     _votingResultManager = app.GetSubsystemOrThrow<IVotingResultManager>();
     _syncManager = app.GetSubsystemOrThrow<ISynchronizationManager>();
     _soundManager = app.GetSubsystemOrThrow<ISoundManager>();
     _keyboard = app.GetSubsystemOrThrow<UnionKeyboard>();
     _configManager = app.GetSubsystemOrThrow<IConfigurationManager>();
     _fileSystemManager = app.GetSubsystemOrThrow<IFileSystemManager>();
     _printingManager = app.GetSubsystemOrThrow<IPrintingManager>();
     _recognitionManager = app.GetSubsystemOrThrow<IRecognitionManager>();
     _logger = _workflowManager.Logger;
 }
Esempio n. 10
0
 public override void Init(SubsystemConfig config)
 {
     _config = (SynchronizationManagerConfig)config;
     _scannerManager = Application.GetSubsystemOrThrow<IScannerManager>();
     _fileSystemManager = Application.GetSubsystemOrThrow<IFileSystemManager>();
     _electionManager = Application.GetSubsystemOrThrow<IElectionManager>();
     _votingResultManager = Application.GetSubsystemOrThrow<IVotingResultManager>();
     _printingManager = Application.GetSubsystemOrThrow<IPrintingManager>();
     _printingManager.PrintReportStarting += (s, e) => SetPrintReportExecutingNow(true);
     _printingManager.PrintReportFinished += (s, e) => ResetPrintReportExecutingNow(true);
     InitRemoteScannerCommunication();
     InitState();
 }
Esempio n. 11
0
 public override void Init(SubsystemConfig config)
 {
     _config = (RecognitionManagerConfig)config;
     _electionManager = Application.GetSubsystemOrThrow<IElectionManager>();
     _votingResultManager = Application.GetSubsystemOrThrow<IVotingResultManager>();
     _scannerManager = Application.GetSubsystemOrThrow<IScannerManager>();
     _fileSystemManager = Application.GetSubsystemOrThrow<IFileSystemManager>();
     CreateOcr();
     GenerateFilePaths();
     _recognitionResultLogger = new RecognitionResultLogger(LogFileFolder);
     RecognitionMode = RecognitionMode.BulletinRecognition;
 }
Esempio n. 12
0
 public override void Init(SubsystemConfig config)
 {
     _config = (ElectionManagerConfig)config;
     _votingResultManager = Application.GetSubsystemOrThrow<IVotingResultManager>();
     _recognitionManager = Application.GetSubsystemOrThrow<IRecognitionManager>();
     _fileSystemManager = Application.GetSubsystemOrThrow<IFileSystemManager>();
     _syncManager = Application.GetSubsystemOrThrow<ISynchronizationManager>();
 }