Пример #1
0
        public void refreshInfo()
        {
            if (isShow)
            {
                if (viewmodel.isShowSectionName)
                {
                    root.grid.Children.Add(vSectionName);
                }
                foreach (line lin in lines)
                {
                    root.grid.Children.Add(lin.vInfo);
                    root.grid.Children.Add(lin.vLinkLine);
                }
                refreshLocation();
            }
            else
            {
                if (viewmodel.isShowSectionName)
                {
                    root.grid.Children.Remove(vSectionName);
                }
                foreach (line lin in lines)
                {
                    root.grid.Children.Remove(lin.vInfo);
                    root.grid.Children.Remove(lin.vLinkLine);
                }
            }

            if (!viewmodel.isShowAllArrow)
            {
                root.setFlow();
            }
        }