RingGdiDataInput.cs 991 B

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