コード例 #1
0
ファイル: LabelCollection.cs プロジェクト: jboenig/Diagram
 /// <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.LabelCollection.EventArgs"/>
 /// object. Then it fires the
 /// <see cref="Syncfusion.Windows.Forms.Diagram.LabelCollection.ChangeComplete"/>
 /// event.
 /// </para>
 /// <seealso cref="Syncfusion.Windows.Forms.Diagram.CollectionEx.EventArgs"/>
 /// <seealso cref="Syncfusion.Windows.Forms.Diagram.LabelCollection.EventArgs"/>
 /// </remarks>
 protected override void OnChangeComplete(CollectionEx.EventArgs evtArgs)
 {
     if (this.ChangeComplete != null)
     {
         LabelCollection.EventArgs typedEvtArgs = evtArgs as LabelCollection.EventArgs;
         if (typedEvtArgs != null)
         {
             this.ChangeComplete(this, typedEvtArgs);
         }
     }
 }
コード例 #2
0
 /// <summary>
 /// Called before 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.Changing"/>
 /// event.
 /// </para>
 /// <seealso cref="Syncfusion.Windows.Forms.Diagram.CollectionEx.EventArgs"/>
 /// <seealso cref="Syncfusion.Windows.Forms.Diagram.ConnectionCollection.EventArgs"/>
 /// </remarks>
 protected override void OnChanging(CollectionEx.EventArgs evtArgs)
 {
     if (this.Changing != null)
     {
         ConnectionCollection.EventArgs typedEvtArgs = evtArgs as ConnectionCollection.EventArgs;
         if (typedEvtArgs != null)
         {
             this.Changing(this, typedEvtArgs);
         }
     }
 }
コード例 #3
0
 /// <summary>
 /// Called after a change is made to the collection.
 /// </summary>
 /// <param name="evtArgs">Event arguments</param>
 /// <remarks>
 /// <para>
 /// The
 /// <see cref="Syncfusion.Windows.Forms.Diagram.CollectionEx.EventArgs"/>
 /// parameter passed to this method is an instance of a class derived from
 /// CollectionEx.EventArgs. Derived classes are responsible for downcasting
 /// this parameter to the correct type.
 /// </para>
 /// </remarks>
 protected abstract void OnChangeComplete(CollectionEx.EventArgs evtArgs);
コード例 #4
0
 /// <summary>
 /// Called before a change is made to the collection.
 /// </summary>
 /// <param name="evtArgs">Event arguments</param>
 /// <remarks>
 /// <para>
 /// The
 /// <see cref="Syncfusion.Windows.Forms.Diagram.CollectionEx.EventArgs"/>
 /// parameter passed to this method is an instance of a class derived from
 /// CollectionEx.EventArgs. Derived classes are responsible for downcasting
 /// this parameter to the correct type.
 /// </para>
 /// </remarks>
 protected abstract void OnChanging(CollectionEx.EventArgs evtArgs);
コード例 #5
0
ファイル: ToolCollection.cs プロジェクト: jboenig/Diagram
 /// <summary>
 /// Called after a change is made to the collection.
 /// </summary>
 /// <param name="evtArgs">Event arguments</param>
 /// <remarks>
 /// <para>
 /// This method does nothing because the ToolCollection class
 /// does not fire events.
 /// </para>
 /// </remarks>
 protected override void OnChangeComplete(CollectionEx.EventArgs evtArgs)
 {
 }
コード例 #6
0
ファイル: ToolCollection.cs プロジェクト: jboenig/Diagram
 /// <summary>
 /// Called before a change is made to the collection.
 /// </summary>
 /// <param name="evtArgs">Event arguments</param>
 /// <remarks>
 /// <para>
 /// This method does nothing because the ToolCollection class
 /// does not fire events.
 /// </para>
 /// </remarks>
 protected override void OnChanging(CollectionEx.EventArgs evtArgs)
 {
 }