AddUser.cs 961 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using PaintDotNet;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel;
  5. using System.Data;
  6. using System.Drawing;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. using System.Windows.Forms;
  11. namespace Metis.AutoAnalysis
  12. {
  13. public partial class AddUser : Form
  14. {
  15. public AddUser()
  16. {
  17. InitializeComponent();
  18. this.Load += (s, e) => InitializeText();
  19. }
  20. public void InitializeText()
  21. {
  22. btnOK.Text = PdnResources.GetString("AutoAnalysis.Button.OK");
  23. btnCancel.Text = PdnResources.GetString("AutoAnalysis.Button.Cancel");
  24. }
  25. public Action<string> CallOK;
  26. private void btnOK_Click(object sender, EventArgs e)
  27. {
  28. CallOK?.Invoke(txbName.Text);
  29. Close();
  30. }
  31. private void btnCancel_Click(object sender, EventArgs e)
  32. {
  33. Close();
  34. }
  35. }
  36. }