HypernovaDesktop Components · docs
Binarymission
WinForms › Project Management › TaskChangingEventArgs

TaskChangingEventArgs

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

A proposed change to one task. Values that are null are not changing.

public class TaskChangingEventArgs : CancelEventArgs

Inherits from / implements: CancelEventArgs

Remarks

A move of a task whose length comes from a planned start and finish, rather than a Duration, carries the length it was scheduled with as NewDuration too, so the task keeps its length when it moves.

Members at a glance

TaskChangingEventArgsCreates the event data.
NewDurationThe new duration in working days, or null when it is not changing.
NewNameThe new name, or null when it is not changing.
NewProgressThe new percentage complete, or null when it is not changing.
NewStartThe new planned start, or null when the start is not changing.
SourceHow the reader made the edit.
TaskThe task that would change. It has not changed yet.
ApplyApplies the change to the task. The charts call this when nobody cancelled.

Constructors

TaskChangingEventArgs

public TaskChangingEventArgs(ProjectTask task, TaskEditSource source, DateTime? newStart, int? newDuration, double? newProgress, string newName)

Creates the event data.

task
The task that would change.
source
How the reader made the edit.
newStart
The new planned start, or null.
newDuration
The new duration in working days, or null.
newProgress
The new percentage complete, or null.
newName
The new name, or null.

Properties

NewDuration

public int? NewDuration

The new duration in working days, or null when it is not changing.

NewName

public string NewName

The new name, or null when it is not changing.

NewProgress

public double? NewProgress

The new percentage complete, or null when it is not changing.

NewStart

public DateTime? NewStart

The new planned start, or null when the start is not changing.

Source

public TaskEditSource Source

How the reader made the edit.

Task

public ProjectTask Task

The task that would change. It has not changed yet.

Methods

Apply

public void Apply()

Applies the change to the task. The charts call this when nobody cancelled.