Rev | Line | |
---|
[4476] | 1 | using System;
|
---|
| 2 | using Microsoft.Practices.ObjectBuilder;
|
---|
| 3 | using System.Web;
|
---|
| 4 |
|
---|
| 5 | namespace OKB.Shell.MasterPages
|
---|
| 6 | {
|
---|
| 7 | public partial class DefaultMaster : Microsoft.Practices.CompositeWeb.Web.UI.MasterPage, IDefaultMasterView
|
---|
| 8 | {
|
---|
| 9 | private DefaultMasterPresenter _presenter;
|
---|
| 10 |
|
---|
| 11 | protected void Page_Load(object sender, EventArgs e)
|
---|
| 12 | {
|
---|
| 13 | if (!this.IsPostBack)
|
---|
| 14 | {
|
---|
| 15 | this._presenter.OnViewInitialized();
|
---|
| 16 | }
|
---|
| 17 | _presenter.OnViewLoaded();
|
---|
| 18 | }
|
---|
| 19 |
|
---|
| 20 | [CreateNew]
|
---|
| 21 | public DefaultMasterPresenter Presenter
|
---|
| 22 | {
|
---|
| 23 | get
|
---|
| 24 | {
|
---|
| 25 | return this._presenter;
|
---|
| 26 | }
|
---|
| 27 | set
|
---|
| 28 | {
|
---|
| 29 | if (value == null)
|
---|
| 30 | throw new ArgumentNullException("value");
|
---|
| 31 |
|
---|
| 32 | this._presenter = value;
|
---|
| 33 | this._presenter.View = this;
|
---|
| 34 | }
|
---|
| 35 | }
|
---|
| 36 | }
|
---|
| 37 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.