-
Notifications
You must be signed in to change notification settings - Fork 0
/
PhoneNumberNestedListViewController.cs
29 lines (28 loc) · 1.28 KB
/
PhoneNumberNestedListViewController.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using System;
using System.Reflection;
using DevExpress.ExpressApp;
using DevExpress.ExpressApp.Actions;
using DevExpress.Persistent.BaseImpl;
namespace WinWebSolution.Module {
public class PhoneNumberNestedListViewController : NestedListViewControllerBase {
private SimpleAction saMasterDetailViewInfoAction = null;
public PhoneNumberNestedListViewController() {
TargetObjectType = typeof(PhoneNumber);
saMasterDetailViewInfoAction = new SimpleAction(this, "MasterDetailViewInfoAction", DevExpress.Persistent.Base.PredefinedCategory.View);
saMasterDetailViewInfoAction.Execute += new SimpleActionExecuteEventHandler(saMasterDetailViewInfoAction_Execute);
}
void saMasterDetailViewInfoAction_Execute(object sender, SimpleActionExecuteEventArgs e) {
MasterDetailViewInfo();
}
private void MasterDetailViewInfo() {
Console.WriteLine(string.Format("MasterViewId = '{0}'", this.MasterDetailViewId));
}
protected override void OnActivated() {
base.OnActivated();
View.ControlsCreated += new EventHandler(View_ControlsCreated);
}
void View_ControlsCreated(object sender, EventArgs e) {
MasterDetailViewInfo();
}
}
}