コード例 #1
0
 /// <summary>
 /// Handles the Rebind event of the gAttributes control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
 protected void gAttributes_Rebind(object sender, EventArgs e)
 {
     if (RebindAttributeClick != null)
     {
         var eventArg = new WorkflowActivityTypeAttributeEventArg(ActivityTypeGuid);
         RebindAttributeClick(this, eventArg);
     }
 }
コード例 #2
0
 /// <summary>
 /// Handles the Reorder event of the gAttributes control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="GridReorderEventArgs"/> instance containing the event data.</param>
 protected void gAttributes_Reorder(object sender, GridReorderEventArgs e)
 {
     if (ReorderAttributeClick != null)
     {
         var eventArg = new WorkflowActivityTypeAttributeEventArg(ActivityTypeGuid, e.OldIndex, e.NewIndex);
         ReorderAttributeClick(this, eventArg);
     }
 }
コード例 #3
0
 /// <summary>
 /// Handles the Delete event of the gAttributes control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="RowEventArgs"/> instance containing the event data.</param>
 protected void gAttributes_Delete(object sender, RowEventArgs e)
 {
     if (DeleteAttributeClick != null)
     {
         var eventArg = new WorkflowActivityTypeAttributeEventArg(ActivityTypeGuid, (Guid)e.RowKeyValue);
         DeleteAttributeClick(this, eventArg);
     }
 }
コード例 #4
0
 /// <summary>
 /// Handles the Add event of the gAttributes control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
 protected void gAttributes_Add(object sender, EventArgs e)
 {
     if (AddAttributeClick != null)
     {
         var eventArg = new WorkflowActivityTypeAttributeEventArg(ActivityTypeGuid, Guid.Empty);
         AddAttributeClick(this, eventArg);
     }
 }
コード例 #5
0
        void control_ReorderAttributeClick( object sender, WorkflowActivityTypeAttributeEventArg e )
        {
            ParseControls();

            if ( ActivityAttributesState.ContainsKey( e.ActivityTypeGuid ) )
            {
                SortAttributes( ActivityAttributesState[e.ActivityTypeGuid], e.OldIndex, e.NewIndex );
                ReOrderAttributes( ActivityAttributesState[e.ActivityTypeGuid] );
                BuildControls( true, e.ActivityTypeGuid );
            }
        }
コード例 #6
0
        void control_EditAttributeClick( object sender, WorkflowActivityTypeAttributeEventArg e )
        {
            ParseControls();

            ShowActivityAttributeEdit( e.ActivityTypeGuid, e.AttributeGuid );
        }
コード例 #7
0
 void control_RebindAttributeClick( object sender, WorkflowActivityTypeAttributeEventArg e )
 {
     BuildControls( true, e.ActivityTypeGuid );
 }
コード例 #8
0
        void control_DeleteAttributeClick( object sender, WorkflowActivityTypeAttributeEventArg e )
        {
            ParseControls();

            if ( ActivityAttributesState.ContainsKey( e.ActivityTypeGuid ) )
            {
                ActivityAttributesState[e.ActivityTypeGuid].RemoveEntity( e.AttributeGuid );
                BuildControls( true, e.ActivityTypeGuid );
            }
        }
コード例 #9
0
 /// <summary>
 /// Handles the Reorder event of the gAttributes control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="GridReorderEventArgs"/> instance containing the event data.</param>
 protected void gAttributes_Reorder( object sender, GridReorderEventArgs e )
 {
     if ( ReorderAttributeClick != null )
     {
         var eventArg = new WorkflowActivityTypeAttributeEventArg( ActivityTypeGuid, e.OldIndex, e.NewIndex );
         ReorderAttributeClick( this, eventArg );
     }
 }
コード例 #10
0
 /// <summary>
 /// Handles the Rebind event of the gAttributes control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
 protected void gAttributes_Rebind( object sender, EventArgs e )
 {
     if ( RebindAttributeClick != null )
     {
         var eventArg = new WorkflowActivityTypeAttributeEventArg( ActivityTypeGuid );
         RebindAttributeClick( this, eventArg );
     }
 }
コード例 #11
0
 /// <summary>
 /// Handles the Edit event of the gAttributes control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="RowEventArgs"/> instance containing the event data.</param>
 protected void gAttributes_Edit( object sender, RowEventArgs e )
 {
     if ( EditAttributeClick != null )
     {
         var eventArg = new WorkflowActivityTypeAttributeEventArg( ActivityTypeGuid, (Guid)e.RowKeyValue );
         EditAttributeClick( this, eventArg );
     }
 }
コード例 #12
0
 /// <summary>
 /// Handles the Add event of the gAttributes control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
 protected void gAttributes_Add( object sender, EventArgs e )
 {
     if ( AddAttributeClick != null )
     {
         var eventArg = new WorkflowActivityTypeAttributeEventArg( ActivityTypeGuid, Guid.Empty );
         AddAttributeClick( this, eventArg );
     }
 }