Пример #1
0
 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);
     }
 }
Пример #2
0
		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;
		}
Пример #3
0
 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);
 }