private void Locker_MouseClick(object sender, MouseEventArgs e)               //监视鼠标点击动作
        {
            LockerPsd frmPsd = new LockerPsd();

            frmPsd.StartPosition = FormStartPosition.CenterParent;
            frmPsd.ShowDialog();
            frmPsd.Focus();
        }
        private void Locker_KeyDown(object sender, KeyEventArgs e)               //监视键盘动作
        {
            LockerPsd frmPsd = new LockerPsd();

            frmPsd.StartPosition = FormStartPosition.CenterParent;
            frmPsd.ShowDialog();
            frmPsd.Focus();
        }
        private void Locker_MouseMove(object sender, MouseEventArgs e)               //监视鼠标移动动作
        {
            int CurrentX = Control.MousePosition.X;
            int CurrentY = Control.MousePosition.Y;

            if (Math.Abs(PreviousX - CurrentX) > 5 || Math.Abs(PreviousY - CurrentY) > 5)
            {
                LockerPsd frmPsd = new LockerPsd();
                frmPsd.StartPosition = FormStartPosition.CenterParent;
                frmPsd.ShowDialog();
                frmPsd.Focus();

                PreviousX = Control.MousePosition.X;               //重新获取上一次的x,y坐标。
                PreviousY = Control.MousePosition.Y;
            }
        }