Esempio n. 1
0
        internal InstallSolr()
        {
            InitializeComponent();

            _solrHelper = new SolrHelper(dataGrid, labelSolrGrid, loadingCircleGrid, RaiseUninstall);

            new InstallSolrPresenter(this, _solrHelper);
        }
Esempio n. 2
0
        internal InstallSolrPresenter(IInstallSolr view, SolrHelper viewHelper)
        {
            _view                   = view;
            _view.LoadedAsync      += async(s, e) => { await Loaded(s, e); };
            _viewHelper             = viewHelper;
            _view.InstallClicked   += InstallClicked;
            _view.UninstallClicked += async(s, e) => { await UninstallClicked(s, (EventArgs <string>) e); };
            _view.ClosingForm      += ClosingForm;

            _profile = Create.New <IProfilesProvider>().SelectedProfile;

            _scriptWrapper = Create.WithParam(_view, d => bool.Parse(d.ToString()), _profile);

            _view.FolderBrowserClicked += (sender, e) => e.Value1.Text = ShowFolderSelector(_profile, e.Value2);
        }