Oback.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. using CoreFS.CA06;
  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.Windows.Forms;
  10. namespace Core.StlMes.Client.Mcp.Coupling
  11. {
  12. public partial class Oback : FrmBase
  13. {
  14. public Oback()
  15. {
  16. InitializeComponent();
  17. }
  18. private string strNum = "";
  19. public string StrNum
  20. {
  21. get { return strNum; }
  22. set { strNum = value; }
  23. }
  24. private string strat = "";
  25. public string Strat
  26. {
  27. get { return strat; }
  28. set { strat = value; }
  29. }
  30. private void DoSave()
  31. {
  32. StrNum = txtNum.Value.ToString();
  33. Strat = "1";
  34. this.Close();
  35. }
  36. private void ultraToolbarsManager1_ToolClick(object sender, Infragistics.Win.UltraWinToolbars.ToolClickEventArgs e)
  37. {
  38. switch (e.Tool.Key)
  39. {
  40. case "Save":
  41. DoSave();
  42. break;
  43. case "Close":
  44. DoClose();
  45. break;
  46. }
  47. }
  48. private void DoClose()
  49. {
  50. this.Close();
  51. }
  52. }
  53. }