/// <summary> /// Starts moving the mouse in the grid mode, in the specified /// direction /// </summary> /// <param name="direction">down or up</param> private void startGridSweep(GridMouseMover.GridSweepDirections direction) { if (_gridMouseMover.IsIdle()) { _mode = MouseMode.Grid; pause(); _gridMouseMover.SetGridSweepDirection(direction); AuditLog.Audit(new AuditEventMouseMover("grid", direction.ToString())); _gridMouseMover.Start(); } }
/// <summary> /// Starts moving the mouse in the grid mode, in the specified /// direction /// </summary> /// <param name="direction">down or up</param> private void startGridSweep(GridMouseMover.Direction direction) { pause(); _gridMouseMover = createGridMouseMover(); AuditLog.Audit(new AuditEventMouseMover(direction.ToString())); _gridMouseMover.GridRectangleDirection = direction; _gridMouseMover.Start(); _gridMouseMover = null; resume(); }