Free cookie consent management tool by TermsFeed Policy Generator

source: branches/WebApplication/WebSites/OKB/Shared/DefaultMaster.master.cs @ 4476

Last change on this file since 4476 was 4476, checked in by cfleisch, 14 years ago

Create repository (#1198)

File size: 962 bytes
RevLine 
[4476]1using System;
2using Microsoft.Practices.ObjectBuilder;
3using System.Web;
4
5namespace 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.