华恒Mes鼎捷代码
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.

45 lines
998 B

5 months ago
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9. namespace ICSSoft.Frame.APP
  10. {
  11. public partial class FormRtn : Form
  12. {
  13. public string Remark;
  14. public FormRtn()
  15. {
  16. InitializeComponent();
  17. Remark = "";
  18. }
  19. private void simpleButton1_Click(object sender, EventArgs e)
  20. {
  21. try
  22. {
  23. Remark = richTextBox1.Text;
  24. }
  25. catch { MessageBox.Show("数量应为正整数,格式有误!");
  26. return;
  27. }
  28. this.DialogResult = DialogResult.OK;
  29. this.Close();
  30. }
  31. private void richTextBox1_KeyPress(object sender, KeyPressEventArgs e)
  32. {
  33. if (e.KeyChar == (Char)Keys.Enter)
  34. {
  35. simpleButton1_Click(null,null);
  36. }
  37. }
  38. }
  39. }