using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using Stone.Common; namespace Stone.WinModule.BasicData { public partial class frmFeatureMatchHand : Form { public frmFeatureMatchHand() { InitializeComponent(); } private void frmFeatureMatchHand_Load(object sender, EventArgs e) { } private void btnOK_Click(object sender, EventArgs e) { try { if (!MyValidator.IsEmpty(this.textBox2, "")) return; if (!MyValidator.IsEmpty(this.textBox3, "")) return; if(this.textBox2.Text.Trim() != this.textBox3.Text.Trim()) { throw new Exception("两次不一样"); } this.DialogResult = DialogResult.OK; this.Close(); } catch (Exception ex) { MyMessageBox.ShowErrorMessage(ex.Message); } } private void btnClose_Click(object sender, EventArgs e) { this.Close(); } } }