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; namespace HCTools { public partial class PicPts : Form { public PicPts() { InitializeComponent(); } private void btn_OK_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(comboBox_Decimal.Text) == true) { GrxCAD.ApplicationServices.Application.ShowAlertDialog("请选择小数位数!"); return; } PickupPoint pickuppt = new PickupPoint(); string num = comboBox_Decimal.SelectedText; this.Close(); pickuppt.PickupPt(num); } private void PicPts_Load(object sender, EventArgs e) { this.comboBox_Decimal.DropDownStyle = ComboBoxStyle.DropDownList; } private void btn_Cancel_Click(object sender, EventArgs e) { this.Close(); } } }