public override NSObject GetChild (NSOutlineView outlineView, int index, NSObject item) { WrapNode wrap; Node n = (Node) (item == null ? Root : (Node) GetNode (item)).Nodes [index]; if (nodeToWrapper.ContainsKey (n)) return nodeToWrapper [n]; wrap = new WrapNode (n); nodeToWrapper [n] = wrap; return wrap; }
public override NSObject GetChild(NSOutlineView outlineView, int index, NSObject item) { WrapNode wrap; Node n = (Node)(item == null ? Root : (Node)GetNode(item)).Nodes [index]; if (nodeToWrapper.ContainsKey(n)) { return(nodeToWrapper [n]); } wrap = new WrapNode(n); nodeToWrapper [n] = wrap; return(wrap); }
public override void SelectionDidChange(NSNotification notification) { if (parent.ignoreSelect) { return; } var indexes = parent.outlineView.SelectedRows; if (indexes.Count == 0) { return; } var node = WrapNode.FromObject(parent.outlineView.ItemAtRow((int)indexes.FirstIndex)); parent.LoadUrl(node.PublicUrl, false, node.Tree.HelpSource); }
static Node GetNode(NSObject obj) { return(WrapNode.FromObject(obj)); }