Exemplo n.º 1
0
 private void txtSpaceZoom_TextChanged(object sender, EventArgs e)
 {
     if (!_synching)
     {
         try
         {
             double f = Convert.ToDouble(txtSpaceZoom.Text);
             if (f > 0.0 && f <= 100.0)
             {
                 hsbLocationZoom.Value = Convert.ToInt32(txtSpaceZoom.Text);
                 drawingForm.SetLocationFitFactor(f / 100.0);
             }
         }
         catch
         {
         }
     }
 }
Exemplo n.º 2
0
 private void hsbLocationZoom_Scroll(object sender, ScrollEventArgs e)
 {
     if (!_synching)
     {
         try
         {
             double f = Convert.ToDouble(hsbLocationZoom.Value);
             if (f > 0.0 && f <= 100.0)
             {
                 txtSpaceZoom.Text = hsbLocationZoom.Value.ToString(CultureInfo.InvariantCulture);
                 drawingForm.SetLocationFitFactor(f / 100.0);
             }
         }
         catch
         {
         }
     }
 }