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