Example #1
0
        //添加单个检查井
        /// <summary>
        /// 增加井盖
        /// </summary>
        /// <param name="cover"></param>
        /// <param name="cp"></param>
        public void AddJunc(Cover cover, Point cp)
        {
            Path path = new Path();

            path.Fill   = cover.GetColorBrush();
            path.Stroke = colorCenter.UnSelected_Border_Color;
            EllipseGeometry eg = new EllipseGeometry();

            eg.Center    = cp;
            eg.RadiusX   = App.StrokeThinkness;
            eg.RadiusY   = App.StrokeThinkness;
            path.Data    = eg;
            path.ToolTip = cover;

            context.Children.Add(path);
            listpath.Add(path);
        }
Example #2
0
        public Path AddJunc(Cover cover)
        {
            Path path = new Path();

            path.Fill   = cover.GetColorBrush();
            path.Stroke = colorCenter.UnSelected_Border_Color;
            EllipseGeometry eg = new EllipseGeometry();

            eg.Center    = Mercator2Screen(cover.Location);
            eg.RadiusX   = App.StrokeThinkness;
            eg.RadiusY   = App.StrokeThinkness;
            path.Data    = eg;
            path.ToolTip = cover;

            context.Children.Add(path);
            listpath.Add(path);
            return(path);
        }