예제 #1
0
파일: Link.cs 프로젝트: jboenig/Diagram
 /// <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();
     }
 }
예제 #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);
     }
 }
예제 #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);
         }
     }
 }