using OTSCommon; using System; using System.Collections; using System.Windows.Forms; namespace OTSMeasureApp._4_OTSSamplespaceGraphicsPanel { public partial class RingGdiDataInput : Form { public float Diameter; public float RingWidth; Hashtable table; public RingGdiDataInput() { InitializeComponent(); Language lan = new Language(this); table = lan.GetNameTable(this.Name); } private void button1_Click(object sender, EventArgs e) { Diameter = Convert.ToSingle(txtDiameter.Text); RingWidth = Convert.ToSingle(txtWidth.Text); this.Close(); } private void button2_Click(object sender, EventArgs e) { this.Close(); } } }