OffLine.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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 OffLine : FrmBase
  13. {
  14. public OffLine()
  15. {
  16. InitializeComponent();
  17. }
  18. private string strNum = "";
  19. private string strMemo = "";//备注
  20. public string StrNum
  21. {
  22. get { return strNum; }
  23. set { strNum = value; }
  24. }
  25. public string StrMemo
  26. {
  27. get { return strMemo; }
  28. set { strMemo = value; }
  29. }
  30. private string strat = "";
  31. public string Strat
  32. {
  33. get { return strat; }
  34. set { strat = value; }
  35. }
  36. private void DoSave()
  37. {
  38. StrNum = txtNum.Value.ToString();
  39. if (txtMemo.Value==null)
  40. {
  41. strMemo = "";
  42. }
  43. else
  44. {
  45. strMemo = txtMemo.Value.ToString();
  46. }
  47. Strat = "1";
  48. this.Close();
  49. }
  50. private void ultraToolbarsManager1_ToolClick(object sender, Infragistics.Win.UltraWinToolbars.ToolClickEventArgs e)
  51. {
  52. switch (e.Tool.Key)
  53. {
  54. case "Save":
  55. DoSave();
  56. break;
  57. case "Close":
  58. DoClose();
  59. break;
  60. }
  61. }
  62. private void DoClose()
  63. {
  64. this.Close();
  65. }
  66. }
  67. }