RingGdiDataInput.cs 820 B

12345678910111213141516171819202122232425262728293031323334
  1. using OTSCommon;
  2. using System;
  3. using System.Collections;
  4. using System.Windows.Forms;
  5. namespace OTSMeasureApp._4_OTSSamplespaceGraphicsPanel
  6. {
  7. public partial class RingGdiDataInput : Form
  8. {
  9. public float Diameter;
  10. public float RingWidth;
  11. Hashtable table;
  12. public RingGdiDataInput()
  13. {
  14. InitializeComponent();
  15. Language lan = new Language(this);
  16. table = lan.GetNameTable(this.Name);
  17. }
  18. private void button1_Click(object sender, EventArgs e)
  19. {
  20. Diameter = Convert.ToSingle(txtDiameter.Text);
  21. RingWidth = Convert.ToSingle(txtWidth.Text);
  22. this.Close();
  23. }
  24. private void button2_Click(object sender, EventArgs e)
  25. {
  26. this.Close();
  27. }
  28. }
  29. }