using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace OTSMeasureApp._4_OTSSamplespaceGraphicsPanel { public partial class frmInitializeStartInput : Form { public bool okcancel=false; public int fieldStartNo=0; public frmInitializeStartInput() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { fieldStartNo = Convert.ToInt32(textBox1.Text); okcancel = true; this.Close(); } private void button2_Click(object sender, EventArgs e) { okcancel = false; this.Close(); } } }