WPF › Project Management › ScheduleProblem
ScheduleProblem
class.NET 6 / 8 / 10.NET Framework 4.8Binarymission.WPF.Controls.ProjectManagement
Something in a plan that could not be used as written: a duplicate id, a link to a missing task, a loop of links. The scheduler never throws for bad data; it reports it here, leaves it out, and schedules everything else.
public sealed class ScheduleProblem
Remarks
A chart given a plan with problems still draws everything it can. Show the problems to the person
who owns the plan – each one's Message is a complete sentence – so the offending row
can be found and fixed.
Examples
foreach (ScheduleProblem problem in gantt.Schedule.Problems)
{
problemsList.Items.Add(problem.Kind + ": " + problem.Message);
}Members at a glance
| Properties | |
|---|---|
Id | Gets the id of the task or link the problem concerns. |
Kind | Gets what kind of problem it is. |
Message | Gets a sentence saying what is wrong and what was done about it, naming the task or link by its id. |
| Methods | |
ToString | Returns the problem as its sentence. |
Properties
Id
public string Id
Gets the id of the task or link the problem concerns.
- Value
- A
ProjectTask.Id, or a link'sEffectiveId. Nevernull; empty when the problem concerns the plan as a whole.
Kind
public ScheduleProblemKind Kind
Gets what kind of problem it is.
Message
public string Message
Gets a sentence saying what is wrong and what was done about it, naming the task or link by its id.
- Value
- English text, such as
Task "api" appears more than once; the first is used.