Changeset 11538 for branches/OptimizationNetworks/HeuristicLab.Optimization.Networks.Views/3.3/Core.Networks.Views/NetworkItemView.cs
- Timestamp:
- 11/12/14 01:43:03 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OptimizationNetworks/HeuristicLab.Optimization.Networks.Views/3.3/Core.Networks.Views/NetworkItemView.cs
r11528 r11538 22 22 using HeuristicLab.Core.Views; 23 23 using HeuristicLab.MainForm; 24 using System;25 24 using System.Windows.Forms; 26 25 … … 38 37 InitializeComponent(); 39 38 } 40 41 protected override void DeregisterContentEvents() {42 Content.PathChanged -= Content_PathChanged;43 base.DeregisterContentEvents();44 }45 protected override void RegisterContentEvents() {46 base.RegisterContentEvents();47 Content.PathChanged += Content_PathChanged;48 }49 50 protected override void OnContentChanged() {51 base.OnContentChanged();52 toolTip.SetToolTip(nameTextBox, Content != null ? Content.Path : string.Empty);53 }54 55 protected virtual void Content_PathChanged(object sender, System.EventArgs e) {56 if (InvokeRequired)57 Invoke(new EventHandler(Content_PathChanged), sender, e);58 else {59 toolTip.SetToolTip(nameTextBox, Content != null ? Content.Path : string.Empty);60 }61 }62 39 } 63 40 }
Note: See TracChangeset
for help on using the changeset viewer.