Show selected line with highlight color

This commit is contained in:
jlewin 2019-02-25 14:00:03 -08:00
parent eee6d6f8a2
commit 481ff5a47e
2 changed files with 30 additions and 5 deletions

View file

@ -69,6 +69,13 @@ namespace MatterHackers.MatterControl
};
calibrationLine.Click += (s, e) =>
{
if (activeLine != null)
{
activeLine.IsActive = false;
}
calibrationLine.IsActive = true;
activeLine = calibrationLine;
this.ActiveOffset = activeOffsets[calibrationLine.OffsetIndex] * -1;
};
this.AddChild(calibrationLine);
@ -88,6 +95,8 @@ namespace MatterHackers.MatterControl
}
}
private CalibrationLine activeLine;
public double ActiveOffset
{
get => _activeOffset;