GengxinrenForm.cs 956 B

123456789101112131415161718192021222324252627282930313233343536
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Text;
  7. using System.Linq;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10. using DevExpress.XtraEditors;
  11. namespace Uninpho.Tools.components.MTLFF
  12. {
  13. public partial class GengxinrenForm : DevExpress.XtraEditors.XtraForm
  14. {
  15. public GengxinrenForm()
  16. {
  17. InitializeComponent();
  18. }
  19. private void simpleButton1_Click(object sender, EventArgs e)
  20. {
  21. if (textEdit1.Text.ToString() == "")
  22. {
  23. XtraMessageBox.Show("更新人不能为空", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
  24. }
  25. else
  26. {
  27. UserInform.userinf.Username = textEdit1.Text.ToString();
  28. this.DialogResult = DialogResult.OK;
  29. this.Close();
  30. }
  31. }
  32. }
  33. }