| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
-
- using Autodesk.AutoCAD.ApplicationServices;
-
- namespace CADTools
- {
- public partial class Scale : Form
- {
- public Scale()
- {
- InitializeComponent();
- }
-
- private void Scale_Load(object sender, EventArgs e)
- {
- combox_scalesel.DropDownStyle = ComboBoxStyle.DropDownList;
- }
-
- private void btn_ok_Click(object sender, EventArgs e)
- {
- if (combox_scalesel.Text == "")
- {
- Autodesk.AutoCAD.ApplicationServices.Application.ShowAlertDialog("请选择比例尺");
- return;
- }
-
- //比例尺
- string blctext = combox_scalesel.Text;
- int blcindex = blctext.LastIndexOf(':');
- string strblc = blctext.Substring(blcindex + 1);
- int rade = Convert.ToInt32(strblc);
-
- this.Close();
- FeatureOverlap.blc = rade;
- FeatureOverlap.move = checkBox1.Checked;
- //this.WindowState = System.Windows.Forms.FormWindowState.Minimized;
- FeatureOverlap chfeature = new FeatureOverlap();
- chfeature.check();
- }
- }
- }
|