CenterResult.cs 933 B

123456789101112131415161718192021222324252627282930313233343536373839
  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.Threading.Tasks;
  9. using System.Windows.Forms;
  10. namespace AnHuiMI.Forms
  11. {
  12. public partial class CenterResult : Form
  13. {
  14. public string returnData;
  15. public CenterResult()
  16. {
  17. InitializeComponent();
  18. }
  19. private void btnCancel_Click(object sender, EventArgs e)
  20. {
  21. DialogResult = DialogResult.Cancel;
  22. Close();
  23. }
  24. public void setTradeNo(string no)
  25. {
  26. this.label4.Text = string.Format("请输入【{0}】交易的返回结果:",no);
  27. }
  28. private void btnOK_Click(object sender, EventArgs e)
  29. {
  30. this.returnData = txtOutput.Text.Trim();
  31. DialogResult = DialogResult.OK;
  32. Close();
  33. }
  34. }
  35. }