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 GrxCAD.ApplicationServices; namespace HCTools { 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 == "") { GrxCAD.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; //this.WindowState = System.Windows.Forms.FormWindowState.Minimized; FeatureOverlap chfeature = new FeatureOverlap(); chfeature.check(); } } }