| 123456789101112131415161718192021222324 |
- using System.Windows;
- using SHJX.Service.WorkFlowEdit;
- namespace Flowchart
- {
- public class CustomLinkTool : LinkTool
- {
- public CustomLinkTool(DiagramView view)
- : base(view) { }
- protected override ILink CreateNewLink(IPort port)
- {
- var link = new OrthogonalLink();
- BindNewLinkToPort(port, link);
- return link;
- }
- protected override void UpdateLink(Point point, IPort port)
- {
- base.UpdateLink(point, port);
- _ = Link as OrthogonalLink;
- }
- }
- }
|