public void ReplaceItems(IEnumerable <ListViewItem> newItems) { bool wasInChange = _inChange; try { _inChange = true; ListViewHelper.ReplaceItems(ListView, newItems.ToArray()); } finally { _inChange = wasInChange; } UpdateButtons(); }
public void UpdateUi() { if (_inUpdateUi) { return; } try { _inUpdateUi = true; ListViewHelper.ReplaceItems(listViewLayouts, ViewLayoutList.Layouts.Select(MakeListViewItem).ToArray()); Text = string.Format(Resources.ManageLayoutsForm_UpdateUi_Manage_layouts_for__0_, ViewLayoutList.ViewName); UpdateButtons(); } finally { _inUpdateUi = false; } }
public void ReplaceItems(IEnumerable <ListViewItem> items) { ListViewHelper.ReplaceItems(this, items.ToArray()); }