Example #1
0
        public void Bind(LogoRecViewModel model)
        {
            imageBox2.DataBindings.Add("Image", model, "ViewedImage", true, DataSourceUpdateMode.OnPropertyChanged);

            textBoxHessian.DataBindings.Add("Text", model, "HessianThresh", true,
                                            DataSourceUpdateMode.OnPropertyChanged);

            textBoxK.DataBindings.Add("Text", model, "K", true,
                                      DataSourceUpdateMode.OnPropertyChanged);

            textBoxUniqness.DataBindings.Add("Text", model, "UniquenessThreshold", true,
                                             DataSourceUpdateMode.OnPropertyChanged);
        }
Example #2
0
        public LogoRecPresenter(ILogoRecView view, LogoRecViewModel model, IFrameAnalyzer analyzer, IFrameProvider frameProvider)
        {
            _view          = view;
            _model         = model;
            _analyzer      = analyzer;
            _frameProvider = frameProvider;

            _view.Bind(_model);
            _model.PropertyChanged += _model_PropertyChanged;

            _view.GoButtonPressed   += _view_GoButtonPressed;
            _view.StopButtonPressed += _view_StopButtonPressed;
        }