derfsplat/MiniMVP

Question about SampleDialogPresenter.cs

vector-man opened this issue · 2 comments

In SampleDialogPresenter.cs, you have the following comment: "//todo: have mainform implement IHostWinForms iface so we can get owner via IHOstWinForms dep passed to ctor"

Do you have any information on how this would be done? Thanks!

If I recall correctly (from 3+ years ago :) ) this interface i referenced was in another project that's not in GH. Let me check tonight and see if I can dig it up and give you something a little more useful!

This is what I meant: 79e857f

The TODO was in reference to removing the method dependency on IWin32Window - it gets old carting that around to every method that has to deal with UI and wants to properly "own" dialogs. I prefer passing that once in the constructor of a presenter and calling it a day.