Ejemplo n.º 1
0
 /// <summary>
 /// Called after a change is made to the set of connection belonging to
 /// the link.
 /// </summary>
 /// <param name="evtArgs">Event arguments</param>
 /// <remarks>
 /// <para>
 /// Docks the connection.
 /// </para>
 /// <seealso cref="Syncfusion.Windows.Forms.Diagram.ConnectionCollection.EventArgs"/>
 /// </remarks>
 protected override void OnConnectionsChangeComplete(ConnectionCollection.EventArgs evtArgs)
 {
     if (evtArgs.ChangeType == CollectionEx.ChangeType.Insert)
     {
         this.DockConnections();
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="evtArgs"></param>
 protected virtual void OnConnectionsChanged(object sender, ConnectionCollection.EventArgs evtArgs)
 {
     if (this.autoLayoutFlag)
     {
         this.UpdateLayout(null);
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Called after a change is made to the collection.
 /// </summary>
 /// <param name="evtArgs">Event arguments</param>
 /// <remarks>
 /// <para>
 /// This method downcasts the CollectionEx.EventArgs parameter to a
 /// <see cref="Syncfusion.Windows.Forms.Diagram.ConnectionCollection.EventArgs"/>
 /// object. Then it fires the
 /// <see cref="Syncfusion.Windows.Forms.Diagram.ConnectionCollection.ChangeComplete"/>
 /// event.
 /// </para>
 /// <seealso cref="Syncfusion.Windows.Forms.Diagram.CollectionEx.EventArgs"/>
 /// <seealso cref="Syncfusion.Windows.Forms.Diagram.ConnectionCollection.EventArgs"/>
 /// </remarks>
 protected override void OnChangeComplete(CollectionEx.EventArgs evtArgs)
 {
     if (this.ChangeComplete != null)
     {
         ConnectionCollection.EventArgs typedEvtArgs = evtArgs as ConnectionCollection.EventArgs;
         if (typedEvtArgs != null)
         {
             this.ChangeComplete(this, typedEvtArgs);
         }
     }
 }