예제 #1
0
        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);
        }
예제 #2
0
        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();
        }