コード例 #1
0
ファイル: MouseScanner2.cs プロジェクト: nbsrujan/acat
        /// <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();
            }
        }
コード例 #2
0
ファイル: MouseScanner.cs プロジェクト: glwu/acat
        /// <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();
        }