GanttDependencyEventArgs
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.2.0.0)
Describes a proposed finish-to-start dependency before it is committed.
- C#
- VB.NET
public class GanttDependencyEventArgs : CancelEventArgs
Public Class GanttDependencyEventArgs
Inherits 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
GanttDependencyEventArgs(predecessor, successor)
Creates event data for the specified operation.
| Name | Type | Description |
|---|---|---|
| predecessor | GanttTask | The predecessor passed to the operation. |
| successor | GanttTask | The successor passed to the operation. |
Properties
Predecessor
GanttTask: Gets the prerequisite task.
Successor
GanttTask: Gets the dependent task.