Skip to main content
Version: 4.2

GanttDependencyEventArgs

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

Describes a proposed finish-to-start dependency before it is committed.

public class GanttDependencyEventArgs : CancelEventArgs

Derives from or implements CancelEventArgs.

Use Predecessor, Successor to access the event data.

Example:

// Event arguments are supplied by GanttView events.
gantt.DependencyCreated += (sender, e) => e.Cancel = e.Predecessor.Progress < 100;

Constructors​

Instance member GanttDependencyEventArgs(predecessor, successor)​

Creates event data for the specified operation.

NameTypeDescription
predecessorGanttTaskThe predecessor passed to the operation.
successorGanttTaskThe successor passed to the operation.

Properties​

Instance member Predecessor​

GanttTask: Gets the prerequisite task.

Instance member Successor​

GanttTask: Gets the dependent task.