Beispiel #1
0
        public void MovePrevSlow()
        {
            Setup.TimerStart($"==>{Setup.CallerName()} Started");

            BaseType n = SdcUtil.GetLastDescendant(Setup.FD);
            int      i = Setup.FD.Nodes.Count() - 1;
            string   content;

            while (n != null)
            {
                if (n is DisplayedType)
                {
                    content = ": title: " + (n as DisplayedType).title;
                }
                else if (n is PropertyType)
                {
                    content = ": " + (n as PropertyType).propName + ": " + (n as PropertyType).val;
                }
                else
                {
                    content = "";
                }

                Debug.Print(n.ObjectID.ToString().PadLeft(4) + ": " + i.ToString().PadLeft(4) + ": " + (n.name ?? "").PadRight(20) + ": " + (n.ElementName ?? "").PadRight(25) + content);

                n = SdcUtil.GetPrevElement(n);
                i--;
            }
            Setup.TimerPrintSeconds("  seconds: ", $"\r\n<=={Setup.CallerName()} Complete");
        }