Changeset 8656
- Timestamp:
- 09/14/12 12:53:28 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Clients.Hive.Views/3.3/StateLog/StateLogGanttChartListView.cs
r8107 r8656 44 44 InitializeComponent(); 45 45 invisibleLegendItems = new List<LegendItem>(); 46 ganttChart.chart.MouseMove += new System.Windows.Forms.MouseEventHandler(chart_MouseMove); 47 ganttChart.chart.MouseDown += new System.Windows.Forms.MouseEventHandler(chart_MouseDown); 48 ganttChart.chart.CustomizeLegend += new EventHandler<CustomizeLegendEventArgs>(chart_CustomizeLegend); 46 49 } 47 50 48 51 protected override void DeregisterContentEvents() { 49 // Deregister your event handlers here50 ganttChart.chart.MouseMove -= new System.Windows.Forms.MouseEventHandler(chart_MouseDown);51 ganttChart.chart.MouseDown -= new System.Windows.Forms.MouseEventHandler(chart_MouseDown);52 ganttChart.chart.CustomizeLegend -= new EventHandler<CustomizeLegendEventArgs>(chart_CustomizeLegend);53 52 base.DeregisterContentEvents(); 54 53 } … … 56 55 protected override void RegisterContentEvents() { 57 56 base.RegisterContentEvents(); 58 // Register your event handlers here59 ganttChart.chart.MouseMove += new System.Windows.Forms.MouseEventHandler(chart_MouseMove);60 ganttChart.chart.MouseDown += new System.Windows.Forms.MouseEventHandler(chart_MouseDown);61 ganttChart.chart.CustomizeLegend += new EventHandler<CustomizeLegendEventArgs>(chart_CustomizeLegend);62 57 } 63 58 64 59 protected override void OnContentChanged() { 65 60 base.OnContentChanged(); 66 if (Content == null) { 67 ganttChart.Reset(); 68 } else { 69 ganttChart.Reset(); 61 62 ganttChart.Reset(); 63 if (Content != null) { 70 64 SetupCategories(ganttChart); 71 65 if (Content.Count > 0) {
Note: See TracChangeset
for help on using the changeset viewer.