public void RefreshRows() { TreeListNode node = (TreeListNode)PlanStructure.virtualParent.FirstChild(); bool done = false; while (node != null && !done) { ((PlanNode)node).UpdateBlock(); done = PlanStructure.GetNextNode(ref node); } SetDetails(LastBlock); }
void Plans_Update(OpPlan plan) { // if node not tracked if (!NodeMap.ContainsKey(plan.UserID)) { return; } // update this node, and all subs (visible below) TreeListNode node = (TreeListNode)NodeMap[plan.UserID]; bool done = false; while (node != null && !done) { ((PlanNode)node).UpdateBlock(); done = PlanStructure.GetNextNode(ref node); } RefreshGoalCombo(); }