frmInitializeStartInput.cs 850 B

1234567891011121314151617181920212223242526272829303132333435
  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. namespace OTSMeasureApp._4_OTSSamplespaceGraphicsPanel
  11. {
  12. public partial class frmInitializeStartInput : Form
  13. {
  14. public bool okcancel=false;
  15. public int fieldStartNo=0;
  16. public frmInitializeStartInput()
  17. {
  18. InitializeComponent();
  19. }
  20. private void button1_Click(object sender, EventArgs e)
  21. {
  22. fieldStartNo = Convert.ToInt32(textBox1.Text);
  23. okcancel = true;
  24. this.Close();
  25. }
  26. private void button2_Click(object sender, EventArgs e)
  27. {
  28. okcancel = false;
  29. this.Close();
  30. }
  31. }
  32. }