public void Attach(PicQueryPresenter presenter) { this.Presenter = presenter; }
private void searchPic_Click(object sender, EventArgs e) { var form = new RemoteImaging.Query.PicQueryForm(); form.Cameras = ConfigurationManager.GetDefault().GetCameras().ToArray().ToList(); var presenter = new PicQueryPresenter(form, loader.repository); form.Presenter = presenter; form.ShowDialog(this); }