private static ApplicationContext createContextFrom(IBatchMainPresenter mainPresenter, BatchStartOptions options) { if (options.IsValid()) { return(new ApplicationContext()); } return(new ApplicationContext(mainPresenter.BaseView.DowncastTo <Form>())); }
public void AttachPresenter(IBatchMainPresenter presenter) { _presenter = presenter; }