public SwitchToPopupView(BrowserPageFrame currentFrame, WebSpyMainView parent) { InitializeComponent(); this.parentView = parent; this.presenter = Presenters.SwitchToPopupPresenter; presenter.InitWithView(this); presenter.InitWithFrame(currentFrame); }
public void InitView(WebSpyMainView view) { this.view = view; // Subscribe to WebDriverUtils events WebSpyBrowser.OnDriverStarted += InitControls; WebSpyBrowser.OnDriverClosed += InitControls; WebSpyBrowser.OnDriverStarted += InitSwitchToControls; ConfigureView(); InitControls(); }
private void btnGenerateSourceCode_Click(object sender, EventArgs e) { WebSpyMainView objWebSpy = this.ParentForm as WebSpyMainView; presenter.GenerateSourceCodeForPageObject(); }