コード例 #1
0
ファイル: ElectionManager.cs プロジェクト: xoposhiy/KOIB
 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>();
 }
コード例 #2
0
ファイル: ReportBuilder.cs プロジェクト: nico-izo/KOIB
 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();
 }
コード例 #3
0
ファイル: ReportBuilder.cs プロジェクト: xoposhiy/KOIB
 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();
 }
コード例 #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();
 }
コード例 #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;
        }
コード例 #6
0
ファイル: ScannerManager.cs プロジェクト: nico-izo/KOIB
 public override void Init(SubsystemConfig config)
 {
     _electionManager = Application.GetSubsystemOrThrow<IElectionManager>();
     _votingResultManager = Application.GetSubsystemOrThrow<IVotingResultManager>();
     _recognitionManager = Application.GetSubsystemOrThrow<IRecognitionManager>();
     _sheetProcessingSession = SheetProcessingSession.GetClosedSheetProcessingSession(Logger);
     ApplyNewConfig(config);
 }
コード例 #7
0
ファイル: PrintingManager.cs プロジェクト: nico-izo/KOIB
 public override void Init(SubsystemConfig config)
 {
     _config = (PrintingManagerConfig)config;
     _electionManager = Application.GetSubsystemOrThrow<IElectionManager>();
     _votingResultManager = Application.GetSubsystemOrThrow<IVotingResultManager>();
 }
コード例 #8
0
ファイル: PrintingManager.cs プロジェクト: xoposhiy/KOIB
 public override void Init(SubsystemConfig config)
 {
     _config              = (PrintingManagerConfig)config;
     _electionManager     = Application.GetSubsystemOrThrow <IElectionManager>();
     _votingResultManager = Application.GetSubsystemOrThrow <IVotingResultManager>();
 }
コード例 #9
0
ファイル: BpcCompositeActivity.cs プロジェクト: nico-izo/KOIB
 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;
 }
コード例 #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();
 }
コード例 #11
0
ファイル: RecognitionManager.cs プロジェクト: nico-izo/KOIB
 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;
 }
コード例 #12
0
ファイル: ElectionManager.cs プロジェクト: nico-izo/KOIB
 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>();
 }