Raises the NewPredecessor event when a new predecessor is created in the predecessor collection of a task to allow the event handlers to create their own predecessor type.

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

Syntax

C#
protected internal virtual Object OnNewPredecessor(
	out bool cancel,
	Task parentTask,
	params Object[] parameters
)
Visual Basic (Declaration)
Protected Friend Overridable Function OnNewPredecessor ( _
	<OutAttribute> ByRef cancel As Boolean, _
	parentTask As Task, _
	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.
parentTask
Type: DlhSoft.Windows.Data..::.Task
Parent task of the new predecessor.
parameters
Type: array< System..::.Object >[]()[]
List of parameters used for actually creating the new predecessor.

Return Value

The newly created predecessor.

See Also