Esempio n. 1
0
        /// <summary>
        /// 线路还原
        /// </summary>
        public void LineRest()
        {
            MapInstrument map = new MapInstrument();

            map.TagFormer();//所有Tag还原为原色
            foreach (var item in MapInstrument.wirePointArrays)
            {
                if (item.GetPath != null)
                {
                    item.GetPath.Stroke          = Brushes.Black;
                    item.GetPath.StrokeThickness = 1;
                }
                List <Path> paths = item.Paths;
                if (paths != null)
                {
                    foreach (Path it in paths)
                    {
                        it.Stroke          = Brushes.Black;
                        it.StrokeThickness = 1;
                    }
                }
            }
        }