Esempio n. 1
0
 private void chartControl_ViewChanged(object sender, ViewChangedArgs e)
 {
     if (!Scrolling)
     {
         Scrolling = true;
         try
         {
             hsbView.Minimum     = e.FirstBar;
             hsbView.Maximum     = e.LastBar;
             hsbView.LargeChange = e.EndBar - e.StartBar + 1;
             hsbView.Value       = e.StartBar;
             LastValue           = e.StartBar;
         }
         catch
         {
         }
         finally
         {
             Scrolling = false;
         }
     }
     else
     {
         Scrolling = false;
     }
 }
Esempio n. 2
0
 private void chartControl_ViewChanged(object sender, ViewChangedArgs e)
 {
     if (!this.Scrolling)
     {
         this.Scrolling = true;
         try
         {
             this.hsbView.Minimum     = e.FirstBar;
             this.hsbView.Maximum     = e.LastBar;
             this.hsbView.LargeChange = e.EndBar - e.StartBar;
             this.hsbView.Value       = e.StartBar;
         }
         finally
         {
             this.Scrolling = false;
         }
     }
 }