Ejemplo n.º 1
0
        private string GetReallyShortString()
        {
            var nodeShort = "(x=" + X + ", y=" + Y + "), color=" + (Color == 0 ? "Red" : "Black") + ", details: ";

            var siteStr  = (Site == null) ? "null" : Site.ToString();
            var beachStr = (BeachSection == null) ? "null" : BeachSection.ToString();
            var ceStr    = (CircleEvent == null) ? "null" : CircleEvent.ToString();

            return(nodeShort + "[site=" + siteStr + ", beach=" + beachStr + ", circleEvent=" + ceStr + "]");
        }
Ejemplo n.º 2
0
        public string GetFullString(int level, bool doNotFollow = false)
        {
            String str = "";

            for (int i = 0; i < 3 * level; i++)
            {
                str = str + " ";
            }

            var nodeShort = "(x=" + X + ", y=" + Y + "), color=" + (Color == 0 ? "Red" : "Black") + ", details: ";

            var siteStr  = (Site == null) ? "null" : Site.ToString();
            var beachStr = (BeachSection == null) ? "null" : BeachSection.ToString();
            var ceStr    = (CircleEvent == null) ? "null" : CircleEvent.ToString();

            return(str + nodeShort + "[site=" + siteStr + ", beach=" + beachStr + ", circleEvent=" + ceStr + "]\n"
                   + str + ("(" + level + ") ") + "LEFT: " + NodeString(Left, level + 1, doNotFollow) + "\n"
                   + str + ("(" + level + ") ") + "RIGHT: " + NodeString(Right, level + 1, doNotFollow) + "\n"
                   + str + ("(" + level + ") ") + "PREVIOUS: " + NodeString(Previous, level, true) + "\n"
                   + str + ("(" + level + ") ") + "NEXT: " + NodeString(Next, level, true) + "\n");
        }