Ejemplo n.º 1
0
        private void vScrollBar_ValueChanged(object sender, EventArgs e)
        {
            if (!m_updatingScrollbars)
            {
                m_scroll.Y = -m_vScrollBar.Value;
                m_transformAdapter.Translation = new PointF(m_transformAdapter.Translation.X, m_scroll.Y);
            }

            OnScroll(EventArgs.Empty);

            AdaptedControl.Refresh();
        }
Ejemplo n.º 2
0
        private void vScrollBar_ValueChanged(object sender, EventArgs e)
        {
            if (!m_updatingScrollbars)
            {
                m_updatingScrollbars = true;
                try
                {
                    m_transformAdapter.Translation = new PointF(m_transformAdapter.Translation.X, -m_vScrollBar.Value);
                }
                finally
                {
                    m_updatingScrollbars = false;
                }
            }

            OnScroll(EventArgs.Empty);

            AdaptedControl.Refresh();
        }