Raises the NewTask event when a new task is created in the collection by calling InsertItem method to allow the event handlers to create their own task type.
Namespace:
DlhSoft.Windows.ControlsAssembly: DlhSoft.ProjectData.Management.Controls (in DlhSoft.ProjectData.Management.Controls.dll)
Syntax
C# |
---|
protected internal virtual Object OnNewTask( out bool cancel, params Object[] parameters ) |
Visual Basic (Declaration) |
---|
Protected Friend Overridable Function OnNewTask ( _ <OutAttribute> ByRef cancel As Boolean, _ ParamArray parameters As Object() _ ) As Object |
Parameters
- cancel
- Type:
System..::.Boolean
%
Returns a value indicating whether the creation of the new item should be cancelled.
- parameters
- Type: array<
System..::.Object
>[]()[]
List of parameters used for actually creating the new task.