/// <summary> /// Refreshes the items in the list to accurately reflect the current collection /// </summary> public void RefreshList() { lbxItems.SuspendLayout(); lbxItems.Items.Clear(); string[] names = _items.GetNames(); foreach (string name in names) { lbxItems.Items.Insert(0, name); } lbxItems.ResumeLayout(); }