private void ListItem(EventTest3 et3, string title) { int offset = 4; MainWin.AppendMessageTbk2(nl); DebugPrint(CheckedStateSymbol(et3.SelectState) + " " + et3.NodeType.ToString().PadRight(7) + "| " + title, "chk count| " + et3.CheckedCount + (et3.NodeType == NodeType.BRANCH ? " :: children| " + et3.childList?.Count ?? "none" : "") , 0, offset); DebugPrint("", et3.SelectState + " :: orig| " + et3.SelectStateOriginal, offset, 0); }
private void DebugPrint(string title, string msg, int offsetA, int offsetB) { MainWin.AppendMessageTbk2( (" ".Repeat(depth * 6 + offsetA) + title.PadRight(20 + offsetB) + " | ")); MainWin.AppendLineTbk2(msg); }