コード例 #1
0
ファイル: PendingProgress.cs プロジェクト: x1m0/PowerShell
            Visit(ProgressNode node, ArrayList unused, int unusedToo)
            {
                Tally += node.LinesRequiredMethod(_rawUi, _maxWidth);

                // We don't need to walk all the nodes, once it's larger than the max height, we should stop
                if (Tally > _maxHeight)
                {
                    return(false);
                }

                return(true);
            }
コード例 #2
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);
     }
 }
コード例 #3
0
ファイル: PendingProgress.cs プロジェクト: 40a/PowerShell
            Visit(ProgressNode node, ArrayList unused, int unusedToo)
            {
                Tally += node.LinesRequiredMethod(_rawUi, _maxWidth);

                // We don't need to walk all the nodes, once it's larger than the max height, we should stop
                if (Tally > _maxHeight)
                {
                    return false;
                }

                return true;
            }
コード例 #4
0
ファイル: PendingProgress.cs プロジェクト: nickchal/pash
			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;
				}
			}