/// <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); } }
/// <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); } }
/// <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); } }
/// <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); } }
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 ); } }
void control_EditAttributeClick( object sender, WorkflowActivityTypeAttributeEventArg e ) { ParseControls(); ShowActivityAttributeEdit( e.ActivityTypeGuid, e.AttributeGuid ); }
void control_RebindAttributeClick( object sender, WorkflowActivityTypeAttributeEventArg e ) { BuildControls( true, e.ActivityTypeGuid ); }
void control_DeleteAttributeClick( object sender, WorkflowActivityTypeAttributeEventArg e ) { ParseControls(); if ( ActivityAttributesState.ContainsKey( e.ActivityTypeGuid ) ) { ActivityAttributesState[e.ActivityTypeGuid].RemoveEntity( e.AttributeGuid ); BuildControls( true, e.ActivityTypeGuid ); } }
/// <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 ); } }
/// <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 ); } }
/// <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 ); } }
/// <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 ); } }