Free cookie consent management tool by TermsFeed Policy Generator

Changeset 2017


Ignore:
Timestamp:
06/04/09 20:55:51 (15 years ago)
Author:
bspisic
Message:

Refactoring PanListener(#664)

Location:
trunk/sources/HeuristicLab.Visualization/3.2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Visualization/3.2/LineChart.cs

    r2016 r2017  
    648648          PanListener panListener = new PanListener(e.Location);
    649649          panListener.Pan += Pan;
    650           panListener.PanEnd += PanEnd;
    651650
    652651          mouseEventListener = panListener;
     
    716715
    717716      canvasUI.Invalidate();
    718     }
    719 
    720     private void PanEnd(Point startPoint, Point endPoint) {
    721       Pan(startPoint, endPoint);
    722717    }
    723718
  • trunk/sources/HeuristicLab.Visualization/3.2/PanListener.cs

    r1530 r2017  
    77
    88    public event MoveHandler Pan;
    9     public event MoveHandler PanEnd;
    109
    1110    public PanListener(Point startPoint) {
     
    2322    }
    2423
    25     public void MouseUp(object sender, MouseEventArgs e) {
    26       if(PanEnd != null) {
    27         PanEnd(startPoint, e.Location);
    28       }
    29     }
     24    public void MouseUp(object sender, MouseEventArgs e) {}
    3025
    3126    #endregion
Note: See TracChangeset for help on using the changeset viewer.