예제 #1
0
        public override string ToString()
        {
            string text = null;

            if (TopLevel)
            {
                text = "Root ";

                if (mCountdown > 0)
                {
                    text += "(Delayed: " + mCountdown + ") ";
                }
            }
            else
            {
                text = "Run ";
            }

            text += mRoot.ToString();

            text += Common.NewLine + mLastResult.ToString();

            if (Count > 0)
            {
                text += " (" + Count.ToString() + ")";
            }

            if (mParent != null)
            {
                text += Common.NewLine + "----" + Common.NewLine + mParent.ToString();
            }

            return(text);
        }