ResultViewItemNo.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. using Resources;
  11. namespace SmartCoalApplication.AutomaticMeasurement
  12. {
  13. public partial class ResultViewItemNo : Form
  14. {
  15. private ResultsView resultsView;
  16. public ResultViewItemNo(ResultsView resultsView)
  17. {
  18. this.resultsView = resultsView;
  19. InitializeComponent();
  20. }
  21. private void setLanguege()
  22. {
  23. this.Text = PdnResources.GetString("ResultViewItemNo");
  24. this.groupBox2.Text = PdnResources.GetString("ResultViewItemNo.groupBox2");
  25. this.button1.Text = PdnResources.GetString("ResultViewItemNo.button1");
  26. this.buttonClose.Text = PdnResources.GetString("ResultViewItemNo.buttonClose");
  27. this.label1.Text = PdnResources.GetString("ResultViewItemNo.label1");
  28. }
  29. /// <summary>
  30. /// 确定
  31. /// </summary>
  32. /// <param name="sender"></param>
  33. /// <param name="e"></param>
  34. private void button1_Click(object sender, EventArgs e)
  35. {
  36. string newItemNo = textBox1.Text;
  37. this.Close();
  38. resultsView.itemNumCallBack(newItemNo);
  39. }
  40. /// <summary>
  41. /// 关闭
  42. /// </summary>
  43. /// <param name="sender"></param>
  44. /// <param name="e"></param>
  45. private void buttonClose_Click(object sender, EventArgs e)
  46. {
  47. this.Close();
  48. }
  49. }
  50. }