Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/05/10 10:38:19 (15 years ago)
Author:
gkronber
Message:

Implemented changes in plugin infrastructure requested by reviewers. #989 (Implement review comments in plugin infrastructure)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/RemotePluginInstaller.cs

    r3608 r3624  
    208208      allPluginsListViewItem.ImageIndex = 0;
    209209      productsListView.Items.Add(allPluginsListViewItem);
    210       foreach (ColumnHeader column in productsListView.Columns)
    211         if (productsListView.Items.Count > 0)
    212           column.AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent);
    213         else column.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize);
     210      Util.ResizeColumns(productsListView.Columns.OfType<ColumnHeader>());
    214211    }
    215212
     
    237234        }
    238235
    239         foreach (ColumnHeader column in pluginsListView.Columns)
    240           if (pluginsListView.Items.Count > 0)
    241             column.AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent);
    242           else column.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize);
    243 
     236        Util.ResizeColumns(pluginsListView.Columns.OfType<ColumnHeader>());
    244237        pluginsListView.SuppressItemCheckedEvents = false;
    245238      }
Note: See TracChangeset for help on using the changeset viewer.