private void DisplayKeys(Group group) { _lvwKeys.BeginUpdate(); _lvwKeys.Items.Clear(); // The if clause handles the last group/node being deleted. if (group != null) { foreach (Key key in group.Keys) { AddListItem(key); } } AutoSizeColumns(); _lvwKeys.EndUpdate(); // Recalculate Selected Keys from the Selected List view Items ContextMgr.SelectedKeys.Clear(); }
private void OnGroupSelected(Group group) { DisplayKeys(group); _rtbKeyDetails.Clear(); _rtbKeyDetails.Enabled = false; }