void Init(IList <T> data) { if (data == null) { throw new ArgumentNullException("data", "Input data is null. Ensure input is a non-null list."); } m_Data = data; if (m_Data.Count > 0) { m_Root = TreeElementUtility.ListToTree(data); } m_MaxID = m_Data.Max(e => e.id); }
public void UpdateActionData() { UpdateActionDataList(); //todo 生成树形结构 _actionDataRoot = TreeElementUtility.ListToTree <FillerElement>(_actionDataList); }