RingGdiDataInput.cs 826 B

12345678910111213141516171819202122232425262728293031323334
  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 RingGdiDataInput : Form
  13. {
  14. public float Diameter;
  15. public float RingWidth;
  16. public RingGdiDataInput()
  17. {
  18. InitializeComponent();
  19. }
  20. private void button1_Click(object sender, EventArgs e)
  21. {
  22. Diameter = Convert.ToSingle(txtDiameter.Text);
  23. RingWidth = Convert.ToSingle(txtWidth.Text);
  24. this.Close();
  25. }
  26. private void button2_Click(object sender, EventArgs e)
  27. {
  28. this.Close();
  29. }
  30. }
  31. }