/// <summary> /// Dispose and delete game out of List enabledGames. /// </summary> public static void Delete(Level l) { Game g = FindGame(l); if (g.IsInProgress()) { g.ForceEnd(nullParameters); } enabledGames.Remove(g); }