Changeset 11205 for branches/HiveStatistics/sources/HeuristicLab.Data.Views/3.3/StringConvertibleArrayView.cs
- Timestamp:
- 07/18/14 13:44:53 (10 years ago)
- Location:
- branches/HiveStatistics/sources
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources
- Property svn:ignore
-
old new 8 8 FxCopResults.txt 9 9 Google.ProtocolBuffers-0.9.1.dll 10 Google.ProtocolBuffers-2.4.1.473.dll 10 11 HeuristicLab 3.3.5.1.ReSharper.user 11 12 HeuristicLab 3.3.6.0.ReSharper.user 12 13 HeuristicLab.4.5.resharper.user 13 14 HeuristicLab.ExtLibs.6.0.ReSharper.user 15 HeuristicLab.Scripting.Development 14 16 HeuristicLab.resharper.user 15 17 ProtoGen.exe … … 17 19 _ReSharper.HeuristicLab 18 20 _ReSharper.HeuristicLab 3.3 21 _ReSharper.HeuristicLab 3.3 Tests 19 22 _ReSharper.HeuristicLab.ExtLibs 20 23 bin 21 24 protoc.exe 22 _ReSharper.HeuristicLab 3.3 Tests23 Google.ProtocolBuffers-2.4.1.473.dll
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/HiveStatistics/sources/HeuristicLab.Data.Views/3.3
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
/branches/HLScript/HeuristicLab.Data.Views/3.3 merged eligible /stable/HeuristicLab.Data.Views/3.3 merged eligible /trunk/sources/HeuristicLab.Data.Views/3.3 merged eligible /branches/1721-RandomForestPersistence/HeuristicLab.Data.Views/3.3 10321-10322 /branches/Algorithms.GradientDescent/HeuristicLab.Data.Views/3.3 5516-5520 /branches/Benchmarking/sources/HeuristicLab.Data.Views/3.3 6917-7005 /branches/CloningRefactoring/HeuristicLab.Data.Views/3.3 4656-4721 /branches/DataAnalysis Refactoring/HeuristicLab.Data.Views/3.3 5471-5808 /branches/DataAnalysis SolutionEnsembles/HeuristicLab.Data.Views/3.3 5815-6180 /branches/DataAnalysis/HeuristicLab.Data.Views/3.3 4458-4459,4462,4464 /branches/DataPreprocessing/HeuristicLab.Data.Views/3.3 10085-11101 /branches/GP.Grammar.Editor/HeuristicLab.Data.Views/3.3 6284-6795 /branches/GP.Symbols (TimeLag, Diff, Integral)/HeuristicLab.Data.Views/3.3 5060 /branches/HeuristicLab.Data Path DataTypes/HeuristicLab.Data.Views/3.3 9669-9706 /branches/HeuristicLab.Problems.DataAnalysis.Trading/HeuristicLab.Data.Views/3.3 6123-9799 /branches/LogResidualEvaluator/HeuristicLab.Data.Views/3.3 10202-10483 /branches/NET40/sources/HeuristicLab.Data.Views/3.3 5138-5162 /branches/ParallelEngine/HeuristicLab.Data.Views/3.3 5175-5192 /branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Data.Views/3.3 7568-7810 /branches/QAPAlgorithms/HeuristicLab.Data.Views/3.3 6350-6627 /branches/Restructure trunk solution/HeuristicLab.Data.Views/3.3 6828 /branches/RuntimeOptimizer/HeuristicLab.Data.Views/3.3 8943-9078 /branches/ScatterSearch (trunk integration)/HeuristicLab.Data.Views/3.3 7787-8333 /branches/SlaveShutdown/HeuristicLab.Data.Views/3.3 8944-8956 /branches/SpectralKernelForGaussianProcesses/HeuristicLab.Data.Views/3.3 10204-10479 /branches/SuccessProgressAnalysis/HeuristicLab.Data.Views/3.3 5370-5682 /branches/Trunk/HeuristicLab.Data.Views/3.3 6829-6865 /branches/UnloadJobs/HeuristicLab.Data.Views/3.3 9168-9215 /branches/VNS/HeuristicLab.Data.Views/3.3 5594-5752 /branches/histogram/HeuristicLab.Data.Views/3.3 5959-6341
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
-
branches/HiveStatistics/sources/HeuristicLab.Data.Views/3.3/StringConvertibleArrayView.cs
r11203 r11205 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 53 53 54 54 protected override void DeregisterContentEvents() { 55 Content.ElementNamesChanged -= new EventHandler(Content_ElementNamesChanged); 55 56 Content.ItemChanged -= new EventHandler<EventArgs<int>>(Content_ItemChanged); 56 57 Content.Reset -= new EventHandler(Content_Reset); … … 62 63 Content.ItemChanged += new EventHandler<EventArgs<int>>(Content_ItemChanged); 63 64 Content.Reset += new EventHandler(Content_Reset); 65 Content.ElementNamesChanged += new EventHandler(Content_ElementNamesChanged); 64 66 } 65 67 … … 96 98 dataGridView.Columns[0].Width = dataGridView.Columns[0].GetPreferredWidth(DataGridViewAutoSizeColumnMode.AllCells, true); 97 99 } 100 UpdateRowHeaders(); 101 dataGridView.AutoResizeRowHeadersWidth(DataGridViewRowHeadersWidthSizeMode.AutoSizeToDisplayedHeaders); 98 102 dataGridView.Enabled = true; 103 } 104 105 protected virtual void UpdateRowHeaders() { 106 int i = 0; 107 foreach (string elementName in Content.ElementNames) { 108 dataGridView.Rows[i].HeaderCell.Value = elementName; 109 i++; 110 } 111 for (; i < dataGridView.RowCount; i++) { 112 dataGridView.Rows[i].HeaderCell.Value = string.Empty; 113 } 114 } 115 116 private void Content_ElementNamesChanged(object sender, EventArgs e) { 117 if (InvokeRequired) 118 Invoke(new EventHandler(Content_ElementNamesChanged), sender, e); 119 else 120 UpdateRowHeaders(); 99 121 } 100 122 … … 103 125 Invoke(new EventHandler<EventArgs<int>>(Content_ItemChanged), sender, e); 104 126 else { 127 // if a resize of the array occurs and some other class handles the event and provides default values 128 //then the itemChanged will occur before the reset event. hence the check was added 129 if (dataGridView.RowCount <= e.Value) return; 105 130 dataGridView.Rows[e.Value].Cells[0].Value = Content.GetValue(e.Value); 106 131 Size size = dataGridView.Rows[e.Value].Cells[0].PreferredSize;
Note: See TracChangeset
for help on using the changeset viewer.