예제 #1
0
        void BlameCommitter_ScrollPosChanged(object sender, EventArgs e)
        {
            if (!_bChangeScrollPosition)
            {
                _bChangeScrollPosition = true;
                SyncBlameFileView();
                _bChangeScrollPosition = false;
            }
            Rectangle rect = BlameCommitter.ClientRectangle;

            rect = BlameCommitter.RectangleToScreen(rect);
            if (rect.Contains(MousePosition))
            {
                Point          p  = BlameCommitter.PointToClient(MousePosition);
                MouseEventArgs me = new MouseEventArgs(0, 0, p.X, p.Y, 0);
                BlameCommitter_MouseMove(null, me);
            }
        }
예제 #2
0
        private void BlameCommitter_VScrollPositionChanged(object sender, EventArgs e)
        {
            if (!_changingScrollPosition)
            {
                _changingScrollPosition   = true;
                BlameFile.VScrollPosition = BlameCommitter.VScrollPosition;
                _changingScrollPosition   = false;
            }

            Rectangle rect = BlameCommitter.ClientRectangle;

            rect = BlameCommitter.RectangleToScreen(rect);
            if (rect.Contains(MousePosition))
            {
                Point p  = BlameCommitter.PointToClient(MousePosition);
                var   me = new MouseEventArgs(0, 0, p.X, p.Y, 0);
                BlameCommitter_MouseMove(null, me);
            }
        }