FrmPopupWindow.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 Core.StlMes.Client.Mcp.Control
  10. {
  11. public partial class FrmPopupWindow : Form
  12. {
  13. public FrmPopupWindow()
  14. {
  15. InitializeComponent();
  16. }
  17. private string popup;
  18. public string Popup
  19. {
  20. get { return popup; }
  21. set { popup = value; }
  22. }
  23. private void ultraButton1_Click(object sender, EventArgs e)
  24. {
  25. Popup = "之前";
  26. this.DialogResult = DialogResult.OK;
  27. this.Close();
  28. }
  29. private void ultraButton2_Click(object sender, EventArgs e)
  30. {
  31. Popup = "之后";
  32. this.DialogResult = DialogResult.OK;
  33. this.Close();
  34. }
  35. private void ultraButton3_Click(object sender, EventArgs e)
  36. {
  37. Popup = "取消";
  38. this.DialogResult = DialogResult.OK;
  39. this.Close();
  40. }
  41. }
  42. }