Changeset 725 for trunk/sources/HeuristicLab.Visualization
- Timestamp:
- 11/09/08 16:30:24 (16 years ago)
- Location:
- trunk/sources/HeuristicLab.Visualization
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/sources/HeuristicLab.Visualization/CanvasUI.cs ¶
r724 r725 39 39 40 40 private void CanvasUI_MouseMove(object sender, MouseEventArgs e) { 41 if (mouseEventListener != null) {} 41 if (mouseEventListener != null) { 42 mouseEventListener.MouseMove(e.Location); 43 } 42 44 } 43 45 44 46 private void CanvasUI_MouseUp(object sender, MouseEventArgs e) { 45 if (mouseEventListener != null) {} 47 if (mouseEventListener != null) { 48 mouseEventListener.MouseUp(e.Location); 49 } 46 50 } 47 51 } -
TabularUnified trunk/sources/HeuristicLab.Visualization/MouseEventListener.cs ¶
r724 r725 1 namespace HeuristicLab.Visualization { 2 public class MouseEventListener {} 1 using System.Drawing; 2 3 namespace HeuristicLab.Visualization { 4 public class MouseEventListener { 5 public event MouseEventListenerHandler OnMouseMove; 6 public event MouseEventListenerHandler OnMouseUp; 7 8 private Point startPoint; 9 10 public void MouseMove(Point actualPoint) { 11 if (OnMouseMove != null) { 12 OnMouseMove(startPoint, actualPoint); 13 } 14 } 15 16 public void MouseUp(Point actualPoint) { 17 if (OnMouseUp != null) { 18 OnMouseUp(startPoint, actualPoint); 19 } 20 } 21 22 public Point StartPoint { 23 get { return startPoint; } 24 set { startPoint = value; } 25 } 26 } 27 28 public delegate void MouseEventListenerHandler(Point startPoint, Point actualPoint); 3 29 }
Note: See TracChangeset
for help on using the changeset viewer.