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