Created
October 21, 2013 17:08
-
-
Save Adamsimsy/7087318 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MvpGlassUserControl<T,K,M> : GlassUserControl<M> | |
where T : IView<M> | |
where K : IPresenter | |
where M : class | |
{ | |
protected T View { get; set; } | |
protected K Presenter { get; private set; } | |
protected override void OnLoad(EventArgs e) | |
{ | |
View = this as T; | |
Presenter = DependencyResolver.Instance.Resolve<K>(new { view = this }); | |
Presenter.Init(); | |
base.OnLoad(e); | |
} | |
protected override void GetModel() | |
{ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
public class MvpGlassUserControl<T,K,M> : GlassUserControl<M>, T<M>
where T : IView
where K : IPresenter
where M : class