HypernovaDesktop Components · docs
Binarymission
WPF › Project Management › TaskLink

TaskLink

class.NET 6 / 8 / 10.NET Framework 4.8Binarymission.WPF.Controls.ProjectManagement

A dependency between two tasks: the successor waits for the predecessor.

public class TaskLink : INotifyPropertyChanged

Inherits from / implements: INotifyPropertyChanged

Remarks

A link into a summary task holds back every subtask in it, and a link out of one waits for all of them. Because a summary's dates belong to its subtasks, only FinishToStart and StartToStart can lead into a summary, and only FinishToStart and FinishToFinish can lead out of one; any other is reported as a problem and left out.

Members at a glance

TaskLinkCreates an empty link. Give it at least FromId and ToId.
TaskLinkCreates a link from one task to another.
FromIdThe predecessor's id.
IdIdentifies the link in events and problems. Optional: when empty the link is known by its ends, as from->to .
LagWorking days of delay after the predecessor lets go; negative for a lead (an overlap).
ToIdThe successor's id.
TypeHow the successor waits for the predecessor.
CloneA copy of the link.
IsNullOrEmptyThe id the link is known by: Id, or its ends when that is empty.
OnPropertyChangedRaises PropertyChanged.
ToStringThe link as its ends and type, for the debugger.
PropertyChangedRaised when any property changes.

Constructors

Properties

FromId

public string FromId

The predecessor's id.

Id

public string Id

Identifies the link in events and problems. Optional: when empty the link is known by its ends, as from->to .

Lag

public int Lag

Working days of delay after the predecessor lets go; negative for a lead (an overlap).

ToId

public string ToId

The successor's id.

Type

public TaskLinkType Type

How the successor waits for the predecessor.

Methods

Clone

public TaskLink Clone()

A copy of the link.

Returns. The copy.

IsNullOrEmpty

public string EffectiveId

The id the link is known by: Id, or its ends when that is empty.

OnPropertyChanged

protected virtual void OnPropertyChanged(string propertyName)

Raises PropertyChanged.

propertyName
The property that changed.

ToString

public override string ToString()

The link as its ends and type, for the debugger.

Returns. Text such as a -> b (FinishToStart, +2) .

Events

PropertyChanged

public event PropertyChangedEventHandler PropertyChanged

Raised when any property changes.