- Timestamp:
- 03/01/13 15:05:12 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionBubbleChartView.cs
r9236 r9267 724 724 private void getDataAsMatrixToolStripMenuItem_Click(object sender, EventArgs e) { 725 725 int xCol = Matrix.ColumnNames.ToList().IndexOf(xAxisValue); 726 int yCol = Matrix.ColumnNames.ToList().IndexOf(yAxisValue); 727 726 728 var grouped = new Dictionary<string, List<string>>(); 727 729 Dictionary<double, string> reverseMapping = null; … … 730 732 foreach (var run in Content.Where(r => r.Visible)) { 731 733 var x = GetValue(run, xAxisValue); 732 var y = GetValue(run, yAxisValue); 733 if (!(x.HasValue && y.HasValue)) continue; 734 object y; 735 if (categoricalMapping.ContainsKey(yCol)) 736 y = Content.GetValue(run, yAxisValue); 737 else y = GetValue(run, yAxisValue); 738 if (!(x.HasValue && y != null)) continue; 734 739 735 740 var category = reverseMapping == null ? x.Value.ToString() : reverseMapping[x.Value]; 736 741 if (!grouped.ContainsKey(category)) grouped[category] = new List<string>(); 737 grouped[category].Add(y. Value.ToString());742 grouped[category].Add(y.ToString()); 738 743 } 739 744 … … 749 754 i++; 750 755 } 751 752 MainFormManager.MainForm.ShowContent(matrix); 756 matrix.SortableView = false; 757 var view = MainFormManager.MainForm.ShowContent(matrix); 758 view.ReadOnly = true; 753 759 } 754 760 #endregion
Note: See TracChangeset
for help on using the changeset viewer.