コード例 #1
0
ファイル: FormDrawParameters.cs プロジェクト: leftwillow/TSS
 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
         {
         }
     }
 }
コード例 #2
0
ファイル: FormDataFilesControl.cs プロジェクト: yuanzy97/TSS
 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
         {
         }
     }
 }