Beispiel #1
0
        public bool ChildOf(string _rc)
        {
            if (_Parent.Length == 0)
            {
                return(false);
            }

            if (_Parent.Equals(_rc))
            {
                return(true);
            }

            return(TreeNodeParent.ChildOf(_rc));
        }
        public override void UnExecute()
        {
            if (TreeNodeParent == null)
            {
                TreeNode.Presentation.RootNode = TreeNode;
            }
            else
            {
                TreeNodeParent.Insert(TreeNode, TreeNodePos);
            }

            //Console.WriteLine("=-------------------------=");
            //Console.WriteLine(TreeNode.GetTextFlattened());
            //Console.WriteLine("=-------------------------=");
            //Console.WriteLine("=-------------------------=");
            //if (TreeNodeParent != null)
            //{
            //    Console.WriteLine(TreeNodeParent.GetTextFlattened());
            //}
        }
 public override void Execute()
 {
     TreeNodeParent.Insert(TreeNode, TreeNodePos);
 }