public void SetCurrentChain(IChain chain) { if (_currentChain != chain) { listView1.Items.Clear(); if ((_currentChain = chain) != null) { foreach (var frame in chain.GetFrames()) listView1.Items.Add(new CallStackListViewItem(frame)); } } else { UpdateCurrentFrames(); } }
public void SetCurrentChain(IChain chain) { if (_currentChain != chain) { listView1.Items.Clear(); if ((_currentChain = chain) != null) { foreach (var frame in chain.GetFrames()) { listView1.Items.Add(new CallStackListViewItem(frame)); } } } else { UpdateCurrentFrames(); } }