public LineData() { UniquenessValidator = new LineUniquenessValidator(this); PointsNotSameValidator = new PointsNotSameValidator(EnumeratePoints()); NameUpdated.Subscribe(PointsNotSameValidator.Update); }
private void OnDeserialized() { UniquenessValidator = new LineUniquenessValidator(this); PointsNotSameValidator = new PointsNotSameValidator(EnumeratePoints()); NameUpdated.Subscribe(PointsNotSameValidator.Update); PointsNotSameValidator.Update(); }
private void OnDeserialized() { PointsAreInOnePlaneValidator = new PolygonPointsAreInOnePlaneValidator(this); PointsAreOnSameLineValidator = new PolygonPointsAreOnSameLineValidator(this); LinesDontIntersectValidator = new PolygonLinesDontIntersectValidator(this); PolygonUniquenessValidator = new PolygonUniquenessValidator(this); PointsNotSameValidator = new PointsNotSameValidator(EnumeratePoints()); NameUpdated.Subscribe(PointsNotSameValidator.Update); PointsAreInOnePlaneValidator.Update(); PointsAreOnSameLineValidator.Update(); LinesDontIntersectValidator.Update(); PointsNotSameValidator.Update(); }