Show selected line with highlight color
This commit is contained in:
parent
eee6d6f8a2
commit
481ff5a47e
2 changed files with 30 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue