private void SetParent(FoldNodalLevel parent) { //if (parent != null) //{ // parent. //} parentNodalLevel = parent; //if () }
public void Remove(FoldNodalLevel nodal) { for (int i = 0; i < childBetterList.size; i++) { if (childBetterList[i] == nodal) { childBetterList.RemoveAt(i); break; } } }
private int FindIndex(FoldNodalLevel nodal) { for (int i = 0; i < childBetterList.size; i++) { if (childBetterList[i] == nodal) { return(i); } } return(-1); }
public bool Contains(FoldNodalLevel nodal) { return(FindIndex(nodal) != -1); }
public void Add(FoldNodalLevel nodal) { childBetterList.Add(nodal); }