void OnToolChangedNotify(NotifyParam np) { if (np.Type == TOOL_CHANGED_TYPE.TCT_FOCUS) { OnUpdateProperty(np.Current); } }
void OnToolChangedNotify(NotifyParam np) { if (root_ == null) { return; } TreeListNode tln = null; if (np.Type == TOOL_CHANGED_TYPE.TCT_ADD) { if (-1 == np.Current.tree_id_) { tln = AppendTree(np.Current, np.Parent.tree_id_); if (np.Index != -1) { treeList_.SetNodeIndex(tln, np.Index); } } if (null != tln) { treeList_.SetFocusedNode(tln); } } }