Enum WBSSequence

WBSSequence enumeration

Specifies sequence for WBSCodeMask

public enum WBSSequence

Values

NameValueDescription
OrderedNumbers0Indicates Numbers WBS sequence.
OrderedUppercaseLetters1Indicates Uppercase letters WBS sequence.
OrderedLowercaseLetters2Indicates Lowercase letters WBS sequence.
UnorderedCharacters3Indicates Unordered characters WBS sequence.

Examples

Shows how to set WBS sequences.

var project = new Project();

project.WBSCodeDefinition = new WBSCodeDefinition();
project.WBSCodeDefinition.GenerateWBSCode = true;
project.WBSCodeDefinition.VerifyUniqueness = true;
project.WBSCodeDefinition.CodePrefix = "CRS-";

var mask = new WBSCodeMask();
mask.Length = 2;
mask.Separator = "-";
mask.Sequence = WBSSequence.OrderedNumbers;
project.WBSCodeDefinition.CodeMaskCollection.Add(mask);

mask = new WBSCodeMask();
mask.Length = 1;
mask.Separator = "-";
mask.Sequence = WBSSequence.OrderedUppercaseLetters;
project.WBSCodeDefinition.CodeMaskCollection.Add(mask);

var tsk = project.RootTask.Children.Add("Task 1");
tsk.Children.Add("Task 2");

project.Recalculate();

project.Save(OutDir + @"AddWBSCodes_out.xml", SaveFileFormat.Xml);

See Also