CustomLinkTool.cs 579 B

123456789101112131415161718192021222324
  1. using System.Windows;
  2. using SHJX.Service.WorkFlowEdit;
  3. namespace Flowchart
  4. {
  5. public class CustomLinkTool : LinkTool
  6. {
  7. public CustomLinkTool(DiagramView view)
  8. : base(view) { }
  9. protected override ILink CreateNewLink(IPort port)
  10. {
  11. var link = new OrthogonalLink();
  12. BindNewLinkToPort(port, link);
  13. return link;
  14. }
  15. protected override void UpdateLink(Point point, IPort port)
  16. {
  17. base.UpdateLink(point, port);
  18. _ = Link as OrthogonalLink;
  19. }
  20. }
  21. }