Skip to content

Commit

Permalink
Adapter is not yet protected in 12.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
apobekiaris committed Jan 27, 2013
1 parent fd137ce commit 57b4e22
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
using System.Reflection;
using DevExpress.ExpressApp;
using DevExpress.ExpressApp.Actions;
using DevExpress.ExpressApp.Model;
using System.Linq;
using DevExpress.ExpressApp.Win.Core.ModelEditor;
using Xpand.ExpressApp.Model;


Expand Down Expand Up @@ -38,7 +40,8 @@ void AddNodeActionOnItemsChanged(object sender, ItemsChangedEventArgs itemsChang
}

void EnableBOModelClassMembersAddMenu() {
var childNodeTypes = Adapter.fastModelEditorHelper.GetListChildNodeTypes(CurrentModelNode.ModelNode.NodeInfo);
var adapter = (ExtendModelInterfaceAdapter)GetType().GetProperty("Adapter", BindingFlags.NonPublic | BindingFlags.Instance).GetValue(this, null);
var childNodeTypes = adapter.fastModelEditorHelper.GetListChildNodeTypes(CurrentModelNode.ModelNode.NodeInfo);
foreach (var childNodeType in childNodeTypes) {
AddNodeAction.Items.Add(new ChoiceActionItem(childNodeType.Key, childNodeType.Value));
}
Expand Down

0 comments on commit 57b4e22

Please sign in to comment.