예제 #1
0
        public void ReplaceItems(IEnumerable <ListViewItem> newItems)
        {
            bool wasInChange = _inChange;

            try
            {
                _inChange = true;
                ListViewHelper.ReplaceItems(ListView, newItems.ToArray());
            }
            finally
            {
                _inChange = wasInChange;
            }
            UpdateButtons();
        }
예제 #2
0
 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;
     }
 }
예제 #3
0
 public void ReplaceItems(IEnumerable <ListViewItem> items)
 {
     ListViewHelper.ReplaceItems(this, items.ToArray());
 }