Exemple #1
0
        public List <Path> GetAllLines()
        {
            List <Path> result = new List <Path>();

            foreach (Path b in LineGarbage)
            {
                b.Visibility = System.Windows.Visibility.Collapsed;
            }
            foreach (Tuple <GTagBoxTree, GTagBoxTree, int> p_c in Lines)
            {
                result.Add(UIElementFactory.CreateBezier(p_c, this));
            }
            return(result);
        }
Exemple #2
0
        public List <TagBox> GetAllTagBox()
        {
            List <TagBox> result = new List <TagBox>();

            //还处于垃圾箱中的TagBox,将其设置为不可见
            foreach (TagBox b in TagBoxGarbage)
            {
                b.Visibility = System.Windows.Visibility.Collapsed;
            }
            //对于每一个节点,创建TagBox()
            foreach (GTagBoxTree obj in All)
            {
                result.Add(UIElementFactory.CreateTagBox(obj.GTagBox, this));
            }
            return(result);
        }