Example #1
0
 public DisplayProvider()
 {
     this.mouseCursor = new MouseCursor();
      this.screenshot = new Screenshot();
      this.tracker = new BoundsTracker();
      this.waterMark = new WaterMark();
 }
Example #2
0
 public DisplayProvider()
 {
     this.mouseCursor = new MouseCursor();
     this.screenshot  = new Screenshot();
     this.tracker     = new BoundsTracker();
     this.waterMark   = new WaterMark();
 }
Example #3
0
 private void rdoWindow_MouseUp(object sender, MouseEventArgs e)
 {
     if (this.windowFinder.IsFinding) {
     this.Cursor = Cursors.Default;
     IntPtr hWnd = this.windowFinder.EndFind();
     if (e.Button == MouseButtons.Left) {
        if (hWnd != IntPtr.Zero) {
           this.BoundsTracker = new BoundsTracker(hWnd);
        }
        else {
           this.BoundsTracker = this.prevBoundsTracker;
           this.prevBoundsTracker = null;
        }
     }
     else {
        this.BoundsTracker = this.prevBoundsTracker;
        this.prevBoundsTracker = null;
     }
      }
 }
Example #4
0
 private void rdoWindow_MouseDown(object sender, MouseEventArgs e)
 {
     if (!this.windowFinder.IsFinding && e.Button == MouseButtons.Left) {
     this.windowFinder.BeginFind();
     // Keep current tracker in case of cancellation.
     this.prevBoundsTracker = this.boundsTracker;
     // Update radio buttons state
     this.BoundsTracker = new BoundsTracker(IntPtr.Zero);
     // Change cursor
     this.Cursor = Cursors.Cross;
      }
 }