Ejemplo n.º 1
0
 public virtual void Click()
 {
     System.Windows.Point clickLocation = Location;
     if (lastClickLocation.Equals(clickLocation))
     {
         int timeout = doubleClickTime - DateTime.Now.Subtract(lastClickTime).Milliseconds;
         if (timeout > 0)
         {
             Thread.Sleep(timeout + ExtraMillisecondsBecauseOfBugInWindows);
         }
     }
     MouseLeftButtonUpAndDown();
     lastClickTime     = DateTime.Now;
     lastClickLocation = Location;
 }