Beispiel #1
0
        private IWorkspacePresenter _currentPresenter; // TODO: replace this with tab views or similar if multipage design needed

        public MainFormPresenter(IMainView view, IViewsProviders providers, ConfigurationManager configmgr)
        {
            _mainView                  = view;
            _mainView.OpenClicked     += OnOpenClicked;
            _mainView.ExportClicked   += OnExportClicked;
            _mainView.HelpClicked     += OnHelpClicked;
            _mainView.SettingsClicked += OnSettingsClicked;
            _mainView.DisplayClicked  += OnDisplayClicked;
            _providers                 = providers;
            _factory = new WorkspacePresenterFactory(providers, configmgr);
        }
Beispiel #2
0
 public WizardPresenter(WorkspacePresenterFactory factory, IWizardViewsProvider provier)
 {
     _factory  = factory;
     _provider = provier;
 }