using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; using DevExpress.XtraEditors; namespace Uninpho.Tools.components.MTLFF { public partial class GengxinrenForm : DevExpress.XtraEditors.XtraForm { public GengxinrenForm() { InitializeComponent(); } private void simpleButton1_Click(object sender, EventArgs e) { if (textEdit1.Text.ToString() == "") { XtraMessageBox.Show("更新人不能为空", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { UserInform.userinf.Username = textEdit1.Text.ToString(); this.DialogResult = DialogResult.OK; this.Close(); } } } }