- Timestamp:
- 07/09/15 13:07:30 (10 years ago)
- Location:
- branches/HeuristicLab.Problems.Orienteering
- Files:
-
- 38 edited
- 4 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.Orienteering
- Property svn:mergeinfo changed
-
Property
svn:global-ignores
set to
*.nuget
packages
-
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Data.Views
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
/branches/HLScript/HeuristicLab.Data.Views merged eligible /stable/HeuristicLab.Data.Views merged eligible /trunk/sources/HeuristicLab.Data.Views merged eligible /branches/1721-RandomForestPersistence/HeuristicLab.Data.Views 10321-10322 /branches/Algorithms.GradientDescent/HeuristicLab.Data.Views 5516-5520 /branches/Benchmarking/sources/HeuristicLab.Data.Views 6917-7005 /branches/CloningRefactoring/HeuristicLab.Data.Views 4656-4721 /branches/CodeEditor/HeuristicLab.Data.Views 11700-11806 /branches/DataAnalysis Refactoring/HeuristicLab.Data.Views 5471-5808 /branches/DataAnalysis SolutionEnsembles/HeuristicLab.Data.Views 5815-6180 /branches/DataAnalysis/HeuristicLab.Data.Views 4458-4459,4462,4464 /branches/DataPreprocessing/HeuristicLab.Data.Views 10085-11101 /branches/DataPreprocessingImprovements/HeuristicLab.Data.Views 12160-12675 /branches/GP.Grammar.Editor/HeuristicLab.Data.Views 6284-6795 /branches/GP.Symbols (TimeLag, Diff, Integral)/HeuristicLab.Data.Views 5060 /branches/HeuristicLab.DatasetRefactor/sources/HeuristicLab.Data.Views 11570-12508 /branches/HeuristicLab.Problems.DataAnalysis.Trading/HeuristicLab.Data.Views 6123-9799 /branches/LogResidualEvaluator/HeuristicLab.Data.Views 10202-10483 /branches/NET40/sources/HeuristicLab.Data.Views 5138-5162 /branches/NSGA-II Changes/HeuristicLab.Data.Views 12033-12122 /branches/ParallelEngine/HeuristicLab.Data.Views 5175-5192 /branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Data.Views 7568-7810 /branches/QAPAlgorithms/HeuristicLab.Data.Views 6350-6627 /branches/Restructure trunk solution/HeuristicLab.Data.Views 6828 /branches/RuntimeOptimizer/HeuristicLab.Data.Views 8943-9078 /branches/ScatterSearch (trunk integration)/HeuristicLab.Data.Views 7787-8333 /branches/SlaveShutdown/HeuristicLab.Data.Views 8944-8956 /branches/SpectralKernelForGaussianProcesses/HeuristicLab.Data.Views 10204-10479 /branches/SuccessProgressAnalysis/HeuristicLab.Data.Views 5370-5682 /branches/Trunk/HeuristicLab.Data.Views 6829-6865 /branches/UnloadJobs/HeuristicLab.Data.Views 9168-9215 /branches/VNS/HeuristicLab.Data.Views 5594-5752 /branches/histogram/HeuristicLab.Data.Views 5959-6341
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
-
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Data.Views/3.3
- Property svn:mergeinfo changed
-
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Data.Views/3.3/BoolValueView.Designer.cs
r11185 r12694 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Data.Views/3.3/BoolValueView.cs
r11185 r12694 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Data.Views/3.3/ColumnsVisibilityDialog.Designer.cs
r11185 r12694 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Data.Views/3.3/ColumnsVisibilityDialog.cs
r11185 r12694 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Data.Views/3.3/ComparisonView.Designer.cs
r11185 r12694 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Data.Views/3.3/ComparisonView.cs
r11185 r12694 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Data.Views/3.3/DoubleRangeView.Designer.cs
r11185 r12694 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Data.Views/3.3/DoubleRangeView.cs
r11185 r12694 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Data.Views/3.3/EnhancedStringConvertibleMatrixView.Designer.cs
r11185 r12694 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Data.Views/3.3/EnhancedStringConvertibleMatrixView.cs
r11185 r12694 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 45 45 public double Minimum { get; set; } 46 46 47 public string FormatPattern { get; set; } 48 47 49 public new DoubleMatrix Content { 48 50 get { return (DoubleMatrix)base.Content; } … … 52 54 public EnhancedStringConvertibleMatrixView() { 53 55 InitializeComponent(); 56 FormatPattern = string.Empty; 54 57 } 55 58 … … 57 60 columnVisibility = null; 58 61 rowVisibility = null; 62 } 63 64 protected override void dataGridView_CellValueNeeded(object sender, DataGridViewCellValueEventArgs e) { 65 if (Content != null && e.RowIndex < Content.Rows && e.ColumnIndex < Content.Columns) { 66 int rowIndex = virtualRowIndices[e.RowIndex]; 67 e.Value = Content[rowIndex, e.ColumnIndex].ToString(FormatPattern); 68 } 59 69 } 60 70 -
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Data.Views/3.3/HeuristicLab.Data.Views-3.3.csproj
r9714 r12694 11 11 <RootNamespace>HeuristicLab.Data.Views</RootNamespace> 12 12 <AssemblyName>HeuristicLab.Data.Views-3.3</AssemblyName> 13 <TargetFrameworkVersion>v4. 0</TargetFrameworkVersion>13 <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> 14 14 <TargetFrameworkProfile> 15 15 </TargetFrameworkProfile> … … 46 46 <WarningLevel>4</WarningLevel> 47 47 <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> 48 <Prefer32Bit>false</Prefer32Bit> 48 49 </PropertyGroup> 49 50 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> … … 57 58 </DocumentationFile> 58 59 <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> 60 <Prefer32Bit>false</Prefer32Bit> 59 61 </PropertyGroup> 60 62 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' "> … … 66 68 <ErrorReport>prompt</ErrorReport> 67 69 <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> 70 <Prefer32Bit>false</Prefer32Bit> 68 71 </PropertyGroup> 69 72 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' "> … … 77 80 <ErrorReport>prompt</ErrorReport> 78 81 <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> 82 <Prefer32Bit>false</Prefer32Bit> 79 83 </PropertyGroup> 80 84 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> … … 86 90 <ErrorReport>prompt</ErrorReport> 87 91 <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> 92 <Prefer32Bit>false</Prefer32Bit> 88 93 </PropertyGroup> 89 94 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' "> … … 97 102 <ErrorReport>prompt</ErrorReport> 98 103 <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> 104 <Prefer32Bit>false</Prefer32Bit> 99 105 </PropertyGroup> 100 106 <ItemGroup> … … 127 133 <DependentUpon>EnhancedStringConvertibleMatrixView.cs</DependentUpon> 128 134 </Compile> 135 <Compile Include="EnumValueView.cs"> 136 <SubType>UserControl</SubType> 137 </Compile> 138 <Compile Include="EnumValueView.Designer.cs"> 139 <DependentUpon>EnumValueView.cs</DependentUpon> 140 </Compile> 129 141 <Compile Include="IntRangeView.cs"> 130 142 <SubType>UserControl</SubType> … … 176 188 <Compile Include="BoolValueView.Designer.cs"> 177 189 <DependentUpon>BoolValueView.cs</DependentUpon> 190 </Compile> 191 <Compile Include="BoolMatrixView.cs"> 192 <SubType>UserControl</SubType> 193 </Compile> 194 <Compile Include="BoolMatrixView.Designer.cs"> 195 <DependentUpon>BoolMatrixView.cs</DependentUpon> 178 196 </Compile> 179 197 <Compile Include="StringConvertibleMatrixVisibilityDialog.cs"> -
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Data.Views/3.3/IntRangeView.Designer.cs
r11185 r12694 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Data.Views/3.3/IntRangeView.cs
r11185 r12694 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Data.Views/3.3/Path Views/DirectoryValueView.Designer.cs
r11185 r12694 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Data.Views/3.3/Path Views/DirectoryValueView.cs
r11185 r12694 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Data.Views/3.3/Path Views/FileValueView.Designer.cs
r11185 r12694 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Data.Views/3.3/Path Views/FileValueView.cs
r11185 r12694 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Data.Views/3.3/Path Views/TextFileView.Designer.cs
r11185 r12694 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Data.Views/3.3/Path Views/TextFileView.cs
r11185 r12694 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Data.Views/3.3/Plugin.cs.frame
r11185 r12694 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 29 29 /// Plugin class for HeuristicLab.Data.Views plugin. 30 30 /// </summary> 31 [Plugin("HeuristicLab.Data.Views", "3.3.1 0.$WCREV$")]31 [Plugin("HeuristicLab.Data.Views", "3.3.11.$WCREV$")] 32 32 [PluginFile("HeuristicLab.Data.Views-3.3.dll", PluginFileType.Assembly)] 33 33 [PluginDependency("HeuristicLab.Common", "3.3")] -
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Data.Views/3.3/Properties/AssemblyInfo.cs.frame
r11185 r12694 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 32 32 [assembly: AssemblyCompany("")] 33 33 [assembly: AssemblyProduct("HeuristicLab")] 34 [assembly: AssemblyCopyright("(c) 2002-201 4HEAL")]34 [assembly: AssemblyCopyright("(c) 2002-2015 HEAL")] 35 35 [assembly: AssemblyTrademark("")] 36 36 [assembly: AssemblyCulture("")] … … 54 54 // by using the '*' as shown below: 55 55 [assembly: AssemblyVersion("3.3.0.0")] 56 [assembly: AssemblyFileVersion("3.3.1 0.$WCREV$")]56 [assembly: AssemblyFileVersion("3.3.11.$WCREV$")] -
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Data.Views/3.3/StringConvertibleArrayView.Designer.cs
r11185 r12694 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Data.Views/3.3/StringConvertibleArrayView.cs
r11185 r12694 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Data.Views/3.3/StringConvertibleMatrixColumnVisibilityDialog.Designer.cs
r11185 r12694 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Data.Views/3.3/StringConvertibleMatrixColumnVisibilityDialog.cs
r11185 r12694 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Data.Views/3.3/StringConvertibleMatrixRowVisibilityDialog.Designer.cs
r11185 r12694 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Data.Views/3.3/StringConvertibleMatrixRowVisibilityDialog.cs
r11185 r12694 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Data.Views/3.3/StringConvertibleMatrixView.Designer.cs
r11185 r12694 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Data.Views/3.3/StringConvertibleMatrixView.cs
r11185 r12694 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 109 109 dataGridView.Columns.Clear(); 110 110 virtualRowIndices = new int[0]; 111 } else 111 } else if (!dataGridView.IsCurrentCellInEditMode) { 112 112 UpdateData(); 113 } 113 114 } 114 115 … … 123 124 } 124 125 125 pr ivatevoid UpdateData() {126 protected virtual void UpdateData() { 126 127 rowsTextBox.Text = Content.Rows.ToString(); 127 128 rowsTextBox.Enabled = true; … … 281 282 dataGridView.Rows[e.RowIndex].ErrorText = string.Empty; 282 283 } 283 pr ivatevoid dataGridView_CellValueNeeded(object sender, DataGridViewCellValueEventArgs e) {284 protected virtual void dataGridView_CellValueNeeded(object sender, DataGridViewCellValueEventArgs e) { 284 285 if (Content != null && e.RowIndex < Content.Rows && e.ColumnIndex < Content.Columns) { 285 286 int rowIndex = virtualRowIndices[e.RowIndex]; … … 295 296 } 296 297 297 pr ivatevoid dataGridView_KeyDown(object sender, KeyEventArgs e) {298 protected virtual void dataGridView_KeyDown(object sender, KeyEventArgs e) { 298 299 if (!ReadOnly && e.Control && e.KeyCode == Keys.V) 299 300 PasteValuesToDataGridView(); … … 398 399 } 399 400 400 pr ivatevoid dataGridView_ColumnHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e) {401 protected virtual void dataGridView_ColumnHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e) { 401 402 if (Content != null) { 402 403 if (e.Button == MouseButtons.Left && Content.SortableView) { 403 bool addToSortedIndices = (Control.ModifierKeys & Keys.Control) == Keys.Control; 404 SortOrder newSortOrder = SortOrder.Ascending; 405 if (sortedColumnIndices.Any(x => x.Key == e.ColumnIndex)) { 406 SortOrder oldSortOrder = sortedColumnIndices.Where(x => x.Key == e.ColumnIndex).First().Value; 407 int enumLength = Enum.GetValues(typeof(SortOrder)).Length; 408 newSortOrder = oldSortOrder = (SortOrder)Enum.Parse(typeof(SortOrder), ((((int)oldSortOrder) + 1) % enumLength).ToString()); 409 } 410 411 if (!addToSortedIndices) 412 sortedColumnIndices.Clear(); 413 414 if (sortedColumnIndices.Any(x => x.Key == e.ColumnIndex)) { 415 int sortedIndex = sortedColumnIndices.FindIndex(x => x.Key == e.ColumnIndex); 416 if (newSortOrder != SortOrder.None) 417 sortedColumnIndices[sortedIndex] = new KeyValuePair<int, SortOrder>(e.ColumnIndex, newSortOrder); 418 else 419 sortedColumnIndices.RemoveAt(sortedIndex); 420 } else 421 if (newSortOrder != SortOrder.None) 422 sortedColumnIndices.Add(new KeyValuePair<int, SortOrder>(e.ColumnIndex, newSortOrder)); 423 Sort(); 404 SortColumn(e.ColumnIndex); 424 405 } 425 406 } … … 438 419 dataGridView.Invalidate(); 439 420 } 421 422 protected virtual void SortColumn(int columnIndex) { 423 bool addToSortedIndices = (Control.ModifierKeys & Keys.Control) == Keys.Control; 424 SortOrder newSortOrder = SortOrder.Ascending; 425 if (sortedColumnIndices.Any(x => x.Key == columnIndex)) { 426 SortOrder oldSortOrder = sortedColumnIndices.Where(x => x.Key == columnIndex).First().Value; 427 int enumLength = Enum.GetValues(typeof(SortOrder)).Length; 428 newSortOrder = oldSortOrder = (SortOrder)Enum.Parse(typeof(SortOrder), ((((int)oldSortOrder) + 1) % enumLength).ToString()); 429 } 430 431 if (!addToSortedIndices) 432 sortedColumnIndices.Clear(); 433 434 if (sortedColumnIndices.Any(x => x.Key == columnIndex)) { 435 int sortedIndex = sortedColumnIndices.FindIndex(x => x.Key == columnIndex); 436 if (newSortOrder != SortOrder.None) 437 sortedColumnIndices[sortedIndex] = new KeyValuePair<int, SortOrder>(columnIndex, newSortOrder); 438 else 439 sortedColumnIndices.RemoveAt(sortedIndex); 440 } else 441 if (newSortOrder != SortOrder.None) 442 sortedColumnIndices.Add(new KeyValuePair<int, SortOrder>(columnIndex, newSortOrder)); 443 Sort(); 444 } 445 440 446 protected virtual int[] Sort(IEnumerable<KeyValuePair<int, SortOrder>> sortedColumns) { 441 447 int[] newSortedIndex = Enumerable.Range(0, Content.Rows).ToArray(); … … 510 516 } 511 517 512 pr ivatevoid dataGridView_MouseClick(object sender, System.Windows.Forms.MouseEventArgs e) {518 protected virtual void dataGridView_MouseClick(object sender, System.Windows.Forms.MouseEventArgs e) { 513 519 if (Content == null) return; 514 520 if (e.Button == MouseButtons.Right && Content.ColumnNames.Count() != 0) … … 543 549 544 550 protected virtual void dataGridView_SelectionChanged(object sender, EventArgs e) { 545 string stringFormat = "{0,20:0.0000}";546 551 statisticsTextBox.Text = string.Empty; 547 552 if (dataGridView.SelectedCells.Count > 1) { … … 553 558 } 554 559 if (selectedValues.Count > 1) { 555 StringBuilder labelText = new StringBuilder(); 556 labelText.Append("Count: " + string.Format(stringFormat, selectedValues.Count) + " "); 557 labelText.Append("Sum: " + string.Format(stringFormat, selectedValues.Sum()) + " "); 558 labelText.Append("Min: " + string.Format(stringFormat, selectedValues.Min()) + " "); 559 labelText.Append("Max: " + string.Format(stringFormat, selectedValues.Max()) + " "); 560 labelText.Append("Average: " + string.Format(stringFormat, selectedValues.Average()) + " "); 561 labelText.Append("Standard Deviation: " + string.Format(stringFormat, selectedValues.StandardDeviation()) + " "); 562 563 statisticsTextBox.Text = labelText.ToString(); 564 } 565 } 560 statisticsTextBox.Text = CreateStatisticsText(selectedValues); 561 } 562 } 563 } 564 565 protected virtual string CreateStatisticsText(ICollection<double> values) { 566 string stringFormat = "{0,20:0.0000}"; 567 int overallCount = values.Count; 568 values = values.Where(x => !double.IsNaN(x)).ToList(); 569 if (!values.Any()) { 570 return ""; 571 } 572 StringBuilder statisticsText = new StringBuilder(); 573 statisticsText.Append("Count: " + values.Count + " "); 574 statisticsText.Append("Sum: " + string.Format(stringFormat, values.Sum()) + " "); 575 statisticsText.Append("Min: " + string.Format(stringFormat, values.Min()) + " "); 576 statisticsText.Append("Max: " + string.Format(stringFormat, values.Max()) + " "); 577 statisticsText.Append("Average: " + string.Format(stringFormat, values.Average()) + " "); 578 statisticsText.Append("Standard Deviation: " + string.Format(stringFormat, values.StandardDeviation()) + " "); 579 if (overallCount > 0) 580 statisticsText.Append("Missing Values: " + string.Format(stringFormat, ((overallCount - values.Count) / (double)overallCount) * 100) + "% "); 581 return statisticsText.ToString(); 566 582 } 567 583 } -
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Data.Views/3.3/StringConvertibleMatrixVisibilityDialog.Designer.cs
r11185 r12694 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Data.Views/3.3/StringConvertibleMatrixVisibilityDialog.cs
r11185 r12694 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Data.Views/3.3/StringConvertibleValueTupleView.Designer.cs
r11185 r12694 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Data.Views/3.3/StringConvertibleValueTupleView.cs
r11185 r12694 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Data.Views/3.3/StringConvertibleValueView.Designer.cs
r11185 r12694 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Data.Views/3.3/StringConvertibleValueView.cs
r11185 r12694 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab.
Note: See TracChangeset
for help on using the changeset viewer.