Exemplo n.º 1
0
        public void ReplaceItems(IEnumerable <ListViewItem> newItems)
        {
            bool wasInChange = _inChange;

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