N2.Web.UI.WebControls.ItemEditorList.FindTopEditor C# (CSharp) Method

FindTopEditor() private method

private FindTopEditor ( Control parent ) : ItemEditor
parent System.Web.UI.Control
return ItemEditor
		private ItemEditor FindTopEditor(Control parent)
		{
			var editor = ItemUtility.FindInParents<ItemEditor>(parent);
			if (editor == null)
				return null;
			return FindTopEditor(editor.Parent) ?? editor;
		}