public VideoQueryPresenter(IVideoQueryScreen screen,
     IRepository portraitRepository,
     ConfigurationManager manager)
 {
     _screen = screen;
     _portraitRepository = portraitRepository;
     _manager = manager;
 }
        public static ConfigurationManager GetDefault()
        {
            if (instance == null)
            {
                instance = new ConfigurationManager();
                instance.Initialize();
            }

            return instance;
        }
Ejemplo n.º 3
0
 public MainController(RealtimeDisplay.MainForm mainForm,
     ConfigurationManager configManager,
     Func<FaceSearchFacade> faceSearchFacadeFactory)
 {
     this._mainForm = mainForm;
     _mainForm = mainForm;
     this._configManager = configManager;
     _configManager = configManager;
     _faceSearchFacadeFactory = faceSearchFacadeFactory;
 }
        public FormLicensePlateQuery(ConfigurationManager configurationManager, FileSystemStorage videoRepository)
        {
            if (configurationManager == null) throw new ArgumentNullException("configurationManager");
            if (videoRepository == null) throw new ArgumentNullException("videoRepository");

            _configurationManager = configurationManager;
            _videoRepository = videoRepository;
            InitializeComponent();

            InitLicenseplateDataTable();

            var now = DateTime.Now;
            to.EditValue = now;
            from.EditValue = now.AddHours(-1);
        }
Ejemplo n.º 5
0
        public PicQueryForm(FileSystemStorage videoRepository, ConfigurationManager manager)
        {
            _videoRepository = videoRepository;
            _manager = manager;

            InitializeComponent();

            navigator.NavigatableControl = new NullNavigator();

            var now = DateTime.Now;
            this.timeFrom.EditValue = now.AddMinutes(-10);
            this.timeTo.EditValue = now;

            galleryControl1.Gallery.ItemCheckedChanged += Gallery_ItemCheckedChanged;

            this.PageSize = 50;
        }
Ejemplo n.º 6
0
 public OptionsPresenter(ConfigurationManager manager, OptionsForm form )
 {
     this._manager = manager;
     this._form = form;
 }
 public VideoQueryPresenter(IVideoQueryScreen screen,
     ConfigurationManager manager)
 {
     _screen = screen;
     _manager = manager;
 }
 public PicQueryFormPresenter(IPicQueryScreen screen,
     ConfigurationManager configManager)
 {
     this.screen = screen;
     _configManager = configManager;
 }
Ejemplo n.º 9
0
        public MainForm(Func<IPicQueryPresenter> picQueryPresenterCreator,
            Func<IVideoQueryPresenter> createVideoQueryPresenter,
            Func<FaceComparePresenter> createFaceCompare,
            Func<OptionsForm> createOptionsForm,
            Func<TargetPersonEditForm> targetsEditorFactory,
            Func<OptionsPresenter> createOptionsPresenter,
            Func<FullVideoScreen> fullScreenMethod,
            IMessageBoxService messageBoxService,
            ConfigurationManager configurationManager,
            FileSystemStorage videoRepository
            )
            : this()
        {
            if (targetsEditorFactory == null) throw new ArgumentNullException("targetsEditorFactory");
            if (fullScreenMethod == null) throw new ArgumentNullException("fullScreenMethod");
            if (messageBoxService == null) throw new ArgumentNullException("messageBoxService");

            CreateFaceCompare = createFaceCompare;
            this.picPresenterCreator = picQueryPresenterCreator;
            _createVideoQueryPresenter = createVideoQueryPresenter;
            _createFaceCompare = createFaceCompare;
            this._createOptionsPresenter = createOptionsPresenter;
            _fullScreenMethod = fullScreenMethod;
            _messageBoxService = messageBoxService;
            _configurationManager = configurationManager;
            this._createOptionsForm = createOptionsForm;
            _targetsEditorFactory = targetsEditorFactory;
            _videoRepository = videoRepository;

            configurationManager.ConfigurationChanged += configurationManager_ConfigurationChanged;

            #if DEBUG
            barButtonItemTest.Visibility = BarItemVisibility.Always;
            #endif
        }