internal override bool Visit(ProgressNode node, ArrayList unused, int unusedToo) { PendingProgress.HeightTallyer tally = this; tally.Tally = tally.Tally + node.LinesRequiredMethod(this.rawUi, this.maxWidth); if (this.Tally <= this.maxHeight) { return(true); } else { return(false); } }
private int TallyHeight(PSHostRawUserInterface rawUi, int maxHeight, int maxWidth) { PendingProgress.HeightTallyer heightTallyer = new PendingProgress.HeightTallyer(rawUi, maxHeight, maxWidth); PendingProgress.NodeVisitor.VisitNodes(this.topLevelNodes, heightTallyer); return heightTallyer.Tally; }
private int TallyHeight(PSHostRawUserInterface rawUi, int maxHeight, int maxWidth) { PendingProgress.HeightTallyer heightTallyer = new PendingProgress.HeightTallyer(rawUi, maxHeight, maxWidth); PendingProgress.NodeVisitor.VisitNodes(this.topLevelNodes, heightTallyer); return(heightTallyer.Tally); }