Raises the NewResource event when a new resource is created in the collection by calling InsertItem method to allow the event handlers to create their own resource type.

Namespace:  DlhSoft.Windows.Controls
Assembly:  DlhSoft.ProjectData.GanttChart.Controls (in DlhSoft.ProjectData.GanttChart.Controls.dll)

Syntax

C#
protected internal virtual Object OnNewResource(
	out bool cancel,
	params Object[] parameters
)
Visual Basic (Declaration)
Protected Friend Overridable Function OnNewResource ( _
	<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 resource.

Return Value

The newly created resource.

See Also