private void init(int level, Boolean hasChildren, string name, string value, hmsspx.pageBase.knownPages nextPage, Type t, string url) { this.nr = entry.lastNr++; this.level = level; this.indent = level * indentValue; this.hasChildren = hasChildren; this.isExpanded = false; this.isDeferred = !String.IsNullOrEmpty(url); this.name = name; this.value = value; this.nextPage = nextPage; this.t = t; this.url = url; this.icon = null; if (nextPage != hmsspx.pageBase.knownPages.NONE) { this.icon = openImageSource; } else if (this.hasChildren == true) { // if we don't have an valid url, this is a generated Title entry for Collections if (String.IsNullOrEmpty(url)) { // this.icon = collapseImageSource; this.isExpanded = true; } else { this.icon = expandImageSource; } } }
private int add_lineBefore(int nr, int level, Boolean hasChildren, string name, string value, hmsspx.pageBase.knownPages nextPage, Type t, string url) { Boolean added = false; entry newEntry = new entry(level, hasChildren, name, value, nextPage, t, url); if (nr >= 0) { for (int e = 0; e < entryList.Count; e++) { if (entryList[e].nr == nr) { entryList_Insert(e, newEntry); added = true; break; } } } if (added == false) { entryList_Add(newEntry); } return(newEntry.nr); }
public int add_lineBefore(int nr, int level, Boolean hasChildren, string name, string value, hmsspx.pageBase.knownPages nextPage, string url) { return(this.add_lineBefore(nr, level, hasChildren, name, value, nextPage, null, url)); }
public entry(int level, Boolean hasChildren, string name, string value, hmsspx.pageBase.knownPages nextPage, Type t, string url) { this.init(level, hasChildren, name, value, nextPage, t, url); }