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.

51 lines
1.2 KiB

3 years ago
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();
}
}
}