private void mi_NextCommand_Click(object sender, EventArgs e) { if (GCodes.SelectedItems != null) { GCodes.CurrentLine = GCodes.SelectedItems[0].Index; SetGCodeRowCurrent(); } }