root/StructuredWeb/StructuredWeb/Common/View/Presenter.cs
| 86 | 110 | ||
|---|---|---|---|
1 | namespace StructuredWeb.Common.View | 1 | namespace StructuredWeb.Common.View |
2 | { | 2 | { |
3 | public class Presenter<T> : IPresenter<T> | 3 | public abstract class Presenter<TView> where TView : IView |
4 | { | ||
5 | public TView View { get; set; } | ||
6 | |||
7 | public virtual void OnViewInitialized() | ||
4 | { | 8 | { |
5 | #region IPresenter<T> Members | 9 | } |
6 | 10 | ||
7 | public T View { get; set; } | 11 | public virtual void OnViewLoaded() |
8 | 12 | { | |
9 | public virtual void OnViewInitialized() | ||
10 | { | ||
11 | } | ||
12 | |||
13 | public virtual void OnViewLoaded() | ||
14 | { | ||
15 | } | ||
16 | |||
17 | #endregion | ||
18 | } | 13 | } |
14 | } | ||
19 | } | 15 | } |
Download diff