frmrequipot.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. using System;
  2. using System.Drawing;
  3. using System.Collections;
  4. using System.ComponentModel;
  5. using System.Windows.Forms;
  6. namespace Core.LgMes.Client.LgDeviceManager
  7. {
  8. public partial class frmrequipot : frmModelFormStyle
  9. {
  10. public string _strPotNo = "";
  11. public bool _updateFlag = false;
  12. public frmrequipot()
  13. {
  14. InitializeComponent();
  15. }
  16. private void proc_OK()
  17. {
  18. if (this.txtNoLadle.Text.Trim().Length == 0)
  19. {
  20. MessageBox.Show("请输入钢包号!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
  21. return;
  22. }
  23. _strPotNo = this.txtNoLadle.Text.Trim();
  24. _updateFlag = true;
  25. this.Close();
  26. }
  27. private void toolStrip1_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
  28. {
  29. switch (e.ClickedItem.Name)
  30. {
  31. case "OK":
  32. this.proc_OK();
  33. break;
  34. case "CANCEL":
  35. this.Close();
  36. break;
  37. default:
  38. break;
  39. }
  40. }
  41. private void button2_Click(object sender, EventArgs e)
  42. {
  43. this.proc_OK();
  44. }
  45. private void button1_Click(object sender, EventArgs e)
  46. {
  47. this.Close();
  48. }
  49. }
  50. }