public Node(string name) { Name = name; // Do not replace with backing field: logic might be overriden in derived classes IncomingBranches = new EventedList <IBranch>(); OutgoingBranches = new EventedList <IBranch>(); NodeFeatures = new EventedList <INodeFeature>(); Attributes = new DictionaryFeatureAttributeCollection(); }
public Node(string name) { Name = name; // Do not replace with backing field: logic might be overriden in derived classes IncomingBranches = new EventedList<IBranch>(); OutgoingBranches = new EventedList<IBranch>(); NodeFeatures = new EventedList<INodeFeature>(); Attributes = new DictionaryFeatureAttributeCollection(); }
public Branch(string name, INode fromNode, INode toNode, double length) { // Do not replace with backing field; virtual setter in derived classes can have added logic; eek! BranchFeatures = new EventedList <IBranchFeature>(); Attributes = new DictionaryFeatureAttributeCollection(); Source = fromNode; Target = toNode; this.length = length; Name = name; OrderNumber = -1; //-1 -> not a part of a chain of branches }
public Branch(string name, INode fromNode, INode toNode, double length) { // Do not replace with backing field; virtual setter in derived classes can have added logic; eek! BranchFeatures = new EventedList<IBranchFeature>(); Attributes = new DictionaryFeatureAttributeCollection(); Source = fromNode; Target = toNode; this.length = length; Name = name; OrderNumber = -1; //-1 -> not a part of a chain of branches }
public Node(string name) { Name = name; incomingBranches = new EventedList<IBranch>(); outgoingBranches = new EventedList<IBranch>(); ((INotifyCollectionChanged)incomingBranches).CollectionChanged += ConnectedBranches_CollectionChanged; ((INotifyCollectionChanged)outgoingBranches).CollectionChanged += ConnectedBranches_CollectionChanged; // Do not replace with backing field?; see Branch NodeFeatures = new EventedList<INodeFeature>(); Attributes = new DictionaryFeatureAttributeCollection(); IsBoundaryNode = true; }
public Node(string name) { Name = name; incomingBranches = new EventedList <IBranch>(); outgoingBranches = new EventedList <IBranch>(); ((INotifyCollectionChanged)incomingBranches).CollectionChanged += ConnectedBranches_CollectionChanged; ((INotifyCollectionChanged)outgoingBranches).CollectionChanged += ConnectedBranches_CollectionChanged; // Do not replace with backing field?; see Branch NodeFeatures = new EventedList <INodeFeature>(); Attributes = new DictionaryFeatureAttributeCollection(); IsBoundaryNode = true; }
public Branch(string name, INode fromNode, INode toNode, double length) { Source = fromNode; Target = toNode; this.length = length; /* * if(length != 0) * { * IsLengthCustom = true; * } */ Name = name; // Do not replace with backing field; virtual setter in derived classes can have added logic; eek! BranchFeatures = new EventedList <IBranchFeature>(); Attributes = new DictionaryFeatureAttributeCollection(); }
public Branch(string name, INode fromNode, INode toNode, double length) { Source = fromNode; Target = toNode; this.length = length; /* if(length != 0) { IsLengthCustom = true; } */ Name = name; // Do not replace with backing field; virtual setter in derived classes can have added logic; eek! BranchFeatures = new EventedList<IBranchFeature>(); Attributes = new DictionaryFeatureAttributeCollection(); }
protected BranchFeature() { Attributes = new DictionaryFeatureAttributeCollection(); }
protected BranchFeature() { Attributes = new DictionaryFeatureAttributeCollection(); }