protected override void DoListingItems() { base.DoListingItems(); int highlightedIndex = HighlightedIndex; string b = null; for (int i = 0; i < debugOutputs.Count; i++) { DebugOutputOption debugOutputOption = debugOutputs[i]; if (debugOutputOption.category != b) { DoLabel(debugOutputOption.category); b = debugOutputOption.category; } Log.openOnMessage = true; try { DebugAction_NewTmp(debugOutputOption.label, debugOutputOption.action, highlightedIndex == i); } finally { Log.openOnMessage = false; } } }
protected override void DoListingItems() { string b = null; foreach (DebugOutputOption debugOutput in debugOutputs) { DebugOutputOption current = debugOutput; if (current.category != b) { DoLabel(current.category); b = current.category; } Log.openOnMessage = true; try { DebugAction(current.label, current.action); } finally { Log.openOnMessage = false; } } }