protected void SecurableClassDefinitionTree_Click(object sender, BocTreeNodeClickEventArgs e) { if (!IsReturningPostBack) { var classDefinition = (SecurableClassDefinition)e.BusinessObjectTreeNode.BusinessObject; var function = new EditPermissionsFormFunction(WxeTransactionMode.CreateRootWithAutoCommit, classDefinition.GetHandle()); var options = new WxeCallOptionsExternal( "_blank", "width=1000, height=700, resizable=yes, menubar=no, toolbar=no, location=no, status=no", true); try { ExecuteFunction(function, new WxeCallArguments((Control)sender, options)); } catch (WxeCallExternalException) { } } else { var classDefinition = ((EditPermissionsFormFunction)ReturningFunction).CurrentObjectHandle.GetObject(); UnloadService.UnloadVirtualEndPoint( ClientTransaction.Current, RelationEndPointID.Resolve(classDefinition, c => c.StatelessAccessControlList)); UnloadService.UnloadVirtualEndPoint( ClientTransaction.Current, RelationEndPointID.Resolve(classDefinition, c => c.StatefulAccessControlLists)); LoadTree(false, true); } }
private void PersonTreeView_Click(object sender, BocTreeNodeClickEventArgs e) { TreeViewLabel.Text = "Node = " + e.Node.Text; }