public IPane FindFirst(PaneCondition condition) { if (_pane != null) { if (condition(_pane)) { return(_pane); } } else if (_childList != null) { IPane p = _childList.FindFirst(condition); if (p != null) { return(p); } } if (_next != null) { return(_next.FindFirst(condition)); } return(null); }
//conditionが最初にtrueを返したPaneを返す。さもなくばnull public IPane FindFirst(PaneCondition condition) { if (_rootList != null) { return(_rootList.FindFirst(condition)); } else { return(null); } }