/// <summary>
 /// Handles the DeleteActionTypeClick event of the workflowActionTypeEditor control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="EventArgs" /> instance containing the event data.</param>
 /// <exception cref="System.NotImplementedException"></exception>
 protected void workflowActionTypeEditor_DeleteActionTypeClick(object sender, EventArgs e)
 {
     if (sender is WorkflowActionTypeEditor)
     {
         WorkflowActionTypeEditor   workflowActionTypeEditor   = sender as WorkflowActionTypeEditor;
         WorkflowActivityTypeEditor workflowActivityTypeEditor = workflowActionTypeEditor.Parent as WorkflowActivityTypeEditor;
         workflowActivityTypeEditor.Controls.Remove(workflowActionTypeEditor);
     }
 }
        /// <summary>
        /// Creates the workflow action type editor control.
        /// </summary>
        /// <param name="workflowActivityTypeEditor">The workflow activity type editor.</param>
        /// <param name="workflowActionType">Type of the workflow action.</param>
        private void CreateWorkflowActionTypeEditorControl(WorkflowActivityTypeEditor workflowActivityTypeEditor, WorkflowActionType workflowActionType)
        {
            WorkflowActionTypeEditor workflowActionTypeEditor = new WorkflowActionTypeEditor();

            workflowActionTypeEditor.ID = "WorkflowActionTypeEditor_" + workflowActionType.Guid.ToString("N");
            workflowActionTypeEditor.DeleteActionTypeClick += workflowActionTypeEditor_DeleteActionTypeClick;
            workflowActionTypeEditor.WorkflowActionType     = workflowActionType;
            workflowActivityTypeEditor.Controls.Add(workflowActionTypeEditor);
        }