protected override IFigure CreateIntermediateFigure() { if (!FoundDependencies.All(f => f is IPoint)) { return(null); } if (FoundDependencies.Count == 2) { return(Factory.CreateSegment(Drawing, FoundDependencies)); } return(null); }
protected override IFigure CreateIntermediateFigure() { if (!FoundDependencies.All(f => f is IPoint)) { return(null); } else if (FoundDependencies.Count >= 3) { var result = Factory.CreateAreaMeasurement(Drawing, FoundDependencies); return(result); } return(null); }