/// <summary> /// Checks for emty runner instances. /// </summary> /// <param name="runners">The runners.</param> /// <returns></returns> public static Collections.SelectionList CheckForEmtyRunnerInstances(Collections.SelectionList runners) { if (runners == null) return runners; int removeAt = -1; for (int x = 0; x < runners.Count; x++) { if (runners[x].selectionId <= 0) removeAt = x; } if (removeAt > -1) runners.RemoveAt(removeAt); return runners; }