public bool OnChildClick(ExpandableListView parent, View clickedView, int groupPosition, int childPosition, long id) { if (this.RootNode != null) { MobTreeView.Node itmGroup = this.RootNode.getChildAt(groupPosition); if (itmGroup != null) { MobTreeView.Node itmChild = itmGroup.getChildAt(childPosition); if (itmChild != null) { if (itmChild.activity != null) { itmChild.activity.done(); } if (NodeClick != null) { NodeClick.Invoke(this, new EventArgsNode(itmChild)); } } } } return(false); }
private void ItemClick_Event(object sender, DirectEventArgs e) { if (NodeClick != null) { var node = tree.SelectedNodes.FirstOrDefault(); NodeClick.Invoke(sender, new TreePanelNodeClickEventArgs(e.ExtraParams, new NodeEx() { NodeID = node.NodeID, Text = node.Text, Checked = node.Checked } ) ); } }
void MobListView_ItemClick(object sender, AdapterView.ItemClickEventArgs e) { if (this.RootNode == null) { return; } MobListView.Node itmChild = this.RootNode.getChildAt(e.Position); if (itmChild == null) { return; } if (itmChild.activity != null) { itmChild.activity.done(); } if (NodeClick != null) { NodeClick.Invoke(this, new EventArgsNode(itmChild)); } }