Exemplo n.º 1
0
        public ConnectorAdorner(Connector connector)
            : base(connector.ParentDiagramItem.ParentDiagram)
        {
            this.connector = connector;

            this.connectorPen = new Pen(Brushes.LightGray, 2) {LineJoin = PenLineJoin.Round};
            this.Cursor = Cursors.Cross;

            System.Diagnostics.Debug.WriteLine("Connector selected", typeof (ConnectorAdorner).Name);
        }
Exemplo n.º 2
0
 public void ConnectionEnded(Connector source, Connector end)
 {
     foreach (var item in this.Children.OfType<DiagramItem>()) {
         item.DisableInputs();
     }
 }
Exemplo n.º 3
0
 public void ConnectionStarted(Connector source)
 {
     System.Diagnostics.Debug.WriteLine("Implement ConnectionStarted at DiagramCanvas!");
     foreach (var item in this.Children.OfType<DiagramItem>()) {
         item.EnableInputs(source);
     }
 }
Exemplo n.º 4
0
 internal void EnableInputs(Connector source)
 {
 }