private void ResetCallStackImages() { for (int x = 0; x < tlvwCallStack.Items.Count; ++x) { TreeListViewItem tlvi = tlvwCallStack.Items[x]; LuaCall call = (LuaCall)tlvi.Tag; if (!call.Equals(null)) { if (x == 0) { Breakpoint bp = BreakpointManager.Instance.GetBreakpointAtLine(call.FileName, call.FunctionLineCall); if (bp != null) { tlvi.ImageIndex = bp.Enabled ? 1 : 2; tlvi.SelectedImageIndex = bp.Enabled ? 1 : 2; } else { tlvi.ImageIndex = 0; tlvi.SelectedImageIndex = 0; } } else if (x == _currentStackLevel) { tlvi.ImageIndex = 3; tlvi.SelectedImageIndex = 3; } else { tlvi.ImageIndex = -1; tlvi.SelectedImageIndex = -1; } } } }