示例#1
0
 protected override void GenerateNodePath(ref GraphicsPath path)
 {
     if (NodeDatas.Count > 0)
     {
         path.AddLines(NodeDatas.ToArray());
     }
 }
示例#2
0
 protected override void GenerateNodePath(ref GraphicsPath path)
 {
     if (NodeDatas.Count > 2)
     {
         path.Reset();
         path.AddPolygon(NodeDatas.ToArray());
     }
     else if (NodeDatas.Count > 1)
     {
         path.Reset();
         path.AddLines(NodeDatas.ToArray());
     }
 }