/************************************************
         * Constructors
         ***********************************************/
        /// <summary>
        /// Initializes a new <see cref="BrowserViewPresenter"/> instance.
        /// </summary>
        /// <param name="view">
        /// The view the presenter will control.
        /// </param>
        /// <param name="regionManager">
        /// The region manager that can be used to place views.
        /// </param>
        /// <param name="searchEngine">
        /// The search engine that will provide results.
        /// </param>
        public CriteriaViewPresenter(ICriteriaView view, IRegionManagerService regionManager, ISearchEngine searchEngine)
        {
            // Store locally
            this.view = view;
            this.regionManager = regionManager;
            this.searchEngine = searchEngine;

            // Subscribe to events from the view
            view.SearchRequested += new EventHandler(view_SearchRequested);
        }
Ejemplo n.º 2
0
 public PerformProcessingOn(ICriteriaView view)
 {
     view.ProcessCriteria(this);
 }