Exemplo n.º 1
0
 private void TransparencyScrollBar_Scroll(object sender, Nevron.UI.WinForm.Controls.ScrollBarEventArgs e)
 {
     if (SetWatermarkTransparency((byte)(TransparencyScrollBar.Value * 255 / 100)))
     {
         nChartControl1.Refresh();
     }
 }
Exemplo n.º 2
0
 private void nhScrollBar1_ValueChanged(object sender, Nevron.UI.WinForm.Controls.ScrollBarEventArgs e)
 {
     if (m_iSuspendUpdate != 0)
     {
         return;
     }
     nWaitingBar1.Properties.Interval = 100 - nhScrollBar1.Value;
 }
Exemplo n.º 3
0
        private void ZoomScrollbar_ValueChanged(object sender, Nevron.UI.WinForm.Controls.ScrollBarEventArgs e)
        {
            float zoomFactor   = (view.ScaleX + view.ScaleY) / 2;
            float scrollFactor = e.ScrollBar.Value / 100.0f;

            if (zoomFactor != scrollFactor)
            {
                view.Zoom(scrollFactor);
            }

            lblZoomFactor.Text = String.Format(ZOOM_LABEL, scrollFactor);
        }
Exemplo n.º 4
0
        private void scaleYScroll_ValueChanged(object sender, Nevron.UI.WinForm.Controls.ScrollBarEventArgs e)
        {
            if (EventsHandlingPaused)
            {
                return;
            }

            float value = (float)scaleYScroll.Value;

            view.ScaleY             = ((float)value / 10);
            scaleYPercentLabel.Text = Convert.ToString(value * 10) + "%";

            view.Refresh();
        }
Exemplo n.º 5
0
        private void zoomScrollbar_ValueChanged(object sender, Nevron.UI.WinForm.Controls.ScrollBarEventArgs e)
        {
            float zoomFactor   = (view.ScaleX + view.ScaleY) / 2;
            float scrollFactor = e.ScrollBar.Value / 100.0f;

            if (zoomFactor != scrollFactor)
            {
                if (view.ViewLayout != ViewLayout.Normal)
                {
                    view.ViewLayout = ViewLayout.Normal;
                }

                view.Zoom(scrollFactor);
            }

            if (lblZoomFactor.Tag != null)
            {
                lblZoomFactor.Text = String.Format(lblZoomFactor.Tag.ToString(), scrollFactor);
            }
        }
Exemplo n.º 6
0
 private void nhScrollBar1_ValueChanged(object sender, Nevron.UI.WinForm.Controls.ScrollBarEventArgs e)
 {
 }