Free cookie consent management tool by TermsFeed Policy Generator

source: branches/WebApplication/WebSites/HeuristicLabWeb/Default.aspx.cs @ 4578

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

Create repository (#1198)

File size: 1013 bytes
Line 
1using System;
2using System.Data;
3using System.Configuration;
4using System.Web;
5using System.Web.Security;
6using System.Web.UI;
7using System.Web.UI.WebControls;
8using System.Web.UI.WebControls.WebParts;
9using System.Web.UI.HtmlControls;
10using OKB.Shell.Views;
11using Microsoft.Practices.ObjectBuilder;
12
13public 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.