} // EditorGlobalSorting_UseGlobalSortChanged #endregion #region Mode settings tab load/save private void LoadModeSettingsTab(List <KeyValuePair <UiBroadcastListColumn, string> > sortedColumns, List <KeyValuePair <UiBroadcastListColumn, string> > sortedColumnsNone) { EditorModeColumns = new ISettingsEditorModeColumns[5]; EditorModeColumns[0] = new SettingsEditorModeMultiColumn(); EditorModeColumns[1] = new SettingsEditorModeSingleColumn(); EditorModeColumns[2] = new SettingsEditorModeSingleColumn(); EditorModeColumns[3] = new SettingsEditorModeSingleColumn(); EditorModeColumns[4] = new SettingsEditorModeTripleColumn(); EditorModeSorting = new SettingsEditorSorting[5]; EditorModeSorting[0] = new SettingsEditorSorting(); EditorModeSorting[1] = new SettingsEditorSorting(); EditorModeSorting[2] = new SettingsEditorSorting(); EditorModeSorting[3] = new SettingsEditorSorting(); EditorModeSorting[4] = new SettingsEditorSorting(); for (int index = 0; index < EditorModeColumns.Length; index++) { var editor = EditorModeColumns[index]; var view = IndexToView(index); editor.SetContainer(this); editor.ColumnsList = sortedColumns; editor.ColumnsNoneList = sortedColumnsNone; editor.Columns = Settings[view].Columns; } // for for (int index = 0; index < EditorModeSorting.Length; index++) { var editor = EditorModeSorting[index]; var view = IndexToView(index); editor.SetContainer(this); editor.ColumnsNoneList = sortedColumnsNone; editor.Sort = Settings[view].Sort; editor.Enabled = !Settings.UseGlobalSortColumns; } // for ManualUpdateLock++; comboLogoSize.ValueMember = "Key"; comboLogoSize.DisplayMember = "Value"; comboLogoSize.DataSource = BaseLogo.GetListLogoSizes(true).AsReadOnly(); checkShowGridlines.Checked = Settings.ShowGridlines; ManualUpdateLock--; SetListMode(Settings.CurrentMode); } // private LoadModeSettingsTab
} // DumpPackagesInfo void InitList() { listViewLocalLogos.Items.Clear(); listViewWebLogos.Items.Clear(); if (ImgListLocalLogos != null) { ImgListLocalLogos.Dispose(); } if (ImgListWebLogos != null) { ImgListWebLogos.Dispose(); } if (DefaultTileSize.IsEmpty) { DefaultTileSize = listViewLocalLogos.TileSize; } var size = BaseLogo.LogoSizeToSize(LogoSize); ImgListLocalLogos = new ImageList(); ImgListWebLogos = new ImageList(); ImgListLocalLogos.ImageSize = size; ImgListLocalLogos.ColorDepth = ColorDepth.Depth32Bit; ImgListWebLogos.ImageSize = size; ImgListWebLogos.ColorDepth = ColorDepth.Depth32Bit; listViewLocalLogos.SmallImageList = ImgListLocalLogos; listViewLocalLogos.LargeImageList = ImgListLocalLogos; listViewWebLogos.SmallImageList = ImgListWebLogos; listViewWebLogos.LargeImageList = ImgListWebLogos; var tileSize = new Size(DefaultTileSize.Width - DefaultTileSize.Height + size.Width, size.Height); listViewLocalLogos.TileSize = tileSize; listViewWebLogos.TileSize = tileSize; } // InitList