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>(); }
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(); }
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(); }
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; }
public override void Init(SubsystemConfig config) { _electionManager = Application.GetSubsystemOrThrow<IElectionManager>(); _votingResultManager = Application.GetSubsystemOrThrow<IVotingResultManager>(); _recognitionManager = Application.GetSubsystemOrThrow<IRecognitionManager>(); _sheetProcessingSession = SheetProcessingSession.GetClosedSheetProcessingSession(Logger); ApplyNewConfig(config); }
public override void Init(SubsystemConfig config) { _config = (PrintingManagerConfig)config; _electionManager = Application.GetSubsystemOrThrow<IElectionManager>(); _votingResultManager = Application.GetSubsystemOrThrow<IVotingResultManager>(); }
public override void Init(SubsystemConfig config) { _config = (PrintingManagerConfig)config; _electionManager = Application.GetSubsystemOrThrow <IElectionManager>(); _votingResultManager = Application.GetSubsystemOrThrow <IVotingResultManager>(); }
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; }
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(); }
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; }
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>(); }