工具箱相关
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Scale.cs 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10. using GrxCAD.ApplicationServices;
  11. namespace HCTools
  12. {
  13. public partial class Scale : Form
  14. {
  15. public Scale()
  16. {
  17. InitializeComponent();
  18. }
  19. private void Scale_Load(object sender, EventArgs e)
  20. {
  21. combox_scalesel.DropDownStyle = ComboBoxStyle.DropDownList;
  22. }
  23. private void btn_ok_Click(object sender, EventArgs e)
  24. {
  25. if (combox_scalesel.Text == "")
  26. {
  27. GrxCAD.ApplicationServices.Application.ShowAlertDialog("请选择比例尺");
  28. return;
  29. }
  30. //比例尺
  31. string blctext = combox_scalesel.Text;
  32. int blcindex = blctext.LastIndexOf(':');
  33. string strblc = blctext.Substring(blcindex + 1);
  34. int rade = Convert.ToInt32(strblc);
  35. this.Close();
  36. FeatureOverlap.blc = rade;
  37. //this.WindowState = System.Windows.Forms.FormWindowState.Minimized;
  38. FeatureOverlap chfeature = new FeatureOverlap();
  39. chfeature.check();
  40. }
  41. }
  42. }