- Timestamp:
- 03/09/17 09:35:42 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Analysis.Views/3.3/GanttDataView.cs
r14734 r14737 50 50 Content.Rows.ItemsReplaced += GanttRowsOnChanged; 51 51 Content.Rows.CollectionReset += GanttRowsOnChanged; 52 Content.CategoryColors.ItemsAdded += GanttCategoryColorsOnChanged; 53 Content.CategoryColors.ItemsRemoved += GanttCategoryColorsOnChanged; 54 Content.CategoryColors.ItemsReplaced += GanttCategoryColorsOnChanged; 55 Content.CategoryColors.CollectionReset += GanttCategoryColorsOnChanged; 52 56 foreach (var row in Content.Rows) 53 57 RegisterGanttRowEvents(row); … … 73 77 Content.Rows.ItemsReplaced -= GanttRowsOnChanged; 74 78 Content.Rows.CollectionReset -= GanttRowsOnChanged; 79 Content.CategoryColors.ItemsAdded -= GanttCategoryColorsOnChanged; 80 Content.CategoryColors.ItemsRemoved -= GanttCategoryColorsOnChanged; 81 Content.CategoryColors.ItemsReplaced -= GanttCategoryColorsOnChanged; 82 Content.CategoryColors.CollectionReset -= GanttCategoryColorsOnChanged; 75 83 foreach (var row in Content.Rows) 76 84 DeregisterGanttRowEvents(row); … … 121 129 122 130 ganttChart.Hide(); 131 ganttChart.Title = string.IsNullOrWhiteSpace(Content.Name) ? null : Content.Name; 123 132 foreach (var row in Content.Rows) { 124 133 foreach (var item in row.Items) { … … 138 147 UpdateVisualization(); 139 148 } 140 141 149 private void GanttRowsOnRemoved(object sender, CollectionItemsChangedEventArgs<GanttRow> e) { 142 150 foreach (var row in e.Items) 143 151 DeregisterGanttRowEvents(row); 144 152 153 UpdateVisualization(); 154 } 155 private void GanttCategoryColorsOnChanged(object sender, EventArgs e) { 145 156 UpdateVisualization(); 146 157 }
Note: See TracChangeset
for help on using the changeset viewer.