private void SetGCodeRowCurrent()
{
int current = GCodes.CurrentLine;
if (current != GCodes.SavedLine)
{
SetGCodeRowAttributes(GCodes.SavedLine);
SetGCodeRowAttributes(current);
if (current < GCodes.Items.Count)
{
GCodes.Items[current].Selected = true;
GCodes.EnsureVisible(current);
GCodes.SavedLine = current;
}
}
}