private static void SetSortedColumn(string tab, IGameFileColumnView gameFileViewControl, ColumnConfig[] colConfig) { ColumnConfig config = colConfig.FirstOrDefault(x => x.Parent == tab && x.Sort != SortOrder.None); if (config != null) { gameFileViewControl.SetSortedColumn(config.Column, config.Sort); } }
private static void SetColumnWidths(string tab, IGameFileColumnView ctrl, ColumnConfig[] config) { IEnumerable <ColumnConfig> configSet = config.Where(x => x.Parent == tab); foreach (ColumnConfig col in configSet) { ctrl.SetColumnWidth(col.Column, col.Width); } }