Changeset 1642 for trunk/sources
- Timestamp:
- 04/23/09 17:40:51 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Persistence.GUI/3.3/PersistenceConfigurationForm.cs
r1611 r1642 10 10 using HeuristicLab.Persistence.Default.Decomposers; 11 11 using HeuristicLab.PluginInfrastructure; 12 using HeuristicLab.Persistence.Default.Decomposers.Storable; 12 13 13 14 namespace HeuristicLab.Persistence.GUI { … … 74 75 75 76 private void UpdateDecomposerList(ListView decomposerList, Configuration config) { 77 decomposerList.SuspendLayout(); 76 78 decomposerList.Items.Clear(); 77 79 var availableDecomposers = new Dictionary<string, IDecomposer>(); … … 90 92 item.Tag = pair.Value; 91 93 } 94 decomposerList.ResumeLayout(); 92 95 } 93 96 94 97 private void UpdateFromConfigurationService() { 98 configurationTabs.SuspendLayout(); 95 99 foreach (IFormat format in ConfigurationService.Instance.Formats) { 96 100 Configuration config = ConfigurationService.Instance.GetConfiguration(format); … … 102 106 config); 103 107 } 108 configurationTabs.ResumeLayout(); 104 109 } 105 110 106 111 private void initializeConfigPages() { 112 configurationTabs.SuspendLayout(); 107 113 configurationTabs.TabPages.Clear(); 108 114 foreach (IFormat format in ConfigurationService.Instance.Formats) { … … 112 118 Tag = format, 113 119 }; 120 page.SuspendLayout(); 114 121 configurationTabs.TabPages.Add(page); 115 122 SplitContainer verticalSplit = new SplitContainer { … … 118 125 BorderStyle = BorderStyle.Fixed3D, 119 126 }; 127 verticalSplit.SuspendLayout(); 120 128 page.Controls.Add(verticalSplit); 121 129 SplitContainer horizontalSplit = new SplitContainer { … … 124 132 BorderStyle = BorderStyle.Fixed3D, 125 133 }; 134 horizontalSplit.SuspendLayout(); 126 135 verticalSplit.Panel1.Controls.Add(horizontalSplit); 127 136 ListView decomposerList = createDecomposerList(); … … 135 144 }; 136 145 horizontalSplit.Panel2.Controls.Add(checkBox); 137 } 146 horizontalSplit.ResumeLayout(); 147 verticalSplit.ResumeLayout(); 148 page.ResumeLayout(); 149 } 150 configurationTabs.ResumeLayout(); 138 151 } 139 152 … … 150 163 AllowUserToOrderColumns = true, 151 164 }; 165 gridView.SuspendLayout(); 152 166 gridView.CellValueChanged += gridView_CellValueChanged; 153 167 gridView.Columns.Add(new DataGridViewTextBoxColumn { … … 163 177 AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill 164 178 }); 179 gridView.ResumeLayout(); 165 180 return gridView; 166 181 } … … 179 194 View = View.Details 180 195 }; 196 decomposerList.SuspendLayout(); 181 197 decomposerList.Resize += decomposerList_Resize; 182 198 decomposerList.ItemChecked += decomposerList_ItemChecked; … … 193 209 item.Tag = decomposer; 194 210 } 211 decomposerList.ResumeLayout(); 195 212 return decomposerList; 196 213 } 197 214 198 215 private void fillDataGrid(DataGridView gridView, IEnumerable<IFormatter> formatters) { 216 gridView.SuspendLayout(); 199 217 Dictionary<string, List<string>> formatterMap = createFormatterMap(formatters); 200 218 foreach (var formatterMapping in formatterMap) { … … 214 232 } 215 233 } 234 gridView.ResumeLayout(); 216 235 } 217 236 … … 270 289 return; 271 290 ListBox checkBox = (ListBox)GetActiveControl("CheckBox"); 291 checkBox.SuspendLayout(); 272 292 IFormat activeFormat = (IFormat)configurationTabs.SelectedTab.Tag; 273 293 if (activeFormat != null && checkBox != null) { … … 280 300 checkBox.Items.Add(decomposer.GetType().Name + " (D)"); 281 301 } 302 checkBox.ResumeLayout(); 282 303 } 283 304
Note: See TracChangeset
for help on using the changeset viewer.