예제 #1
0
 /// <summary>
 /// Called when the bounds of a node changes in the model.
 /// </summary>
 /// <param name="sender">Model sending the event</param>
 /// <param name="evtArgs">Event arguments</param>
 protected virtual void OnNodeBoundsChanged(object sender, BoundsEventArgs evtArgs)
 {
     if (this.autoLayoutFlag)
     {
         this.UpdateLayout(null);
     }
 }
예제 #2
0
 /// <summary>
 /// Called when the bounds of the node change.
 /// </summary>
 /// <param name="evtArgs">Event arguments</param>
 /// <remarks>
 /// <para>
 /// This method notifies the
 /// <see cref="Syncfusion.Windows.Forms.Diagram.ImageNode.Parent"/>
 /// of the change in bounds by calling the parent node's
 /// <see cref="Syncfusion.Windows.Forms.Diagram.IDispatchNodeEvents.BoundsChanged"/>
 /// method.
 /// </para>
 /// <seealso cref="Syncfusion.Windows.Forms.Diagram.BoundsEventArgs"/>
 /// <seealso cref="Syncfusion.Windows.Forms.Diagram.IDispatchNodeEvents"/>
 /// </remarks>
 protected virtual void OnBoundsChanged(BoundsEventArgs evtArgs)
 {
     if (this.parent != null)
     {
         IDispatchNodeEvents evtDispatcher = this.parent.GetService(typeof(IDispatchNodeEvents)) as IDispatchNodeEvents;
         if (evtDispatcher != null)
         {
             evtDispatcher.BoundsChanged(evtArgs);
         }
     }
 }