31 lines
764 B
C#
31 lines
764 B
C#
|
|
using System;
|
|||
|
|
using System.Windows.Forms;
|
|||
|
|
|
|||
|
|
namespace 口罩泄露测试仪控制系统_定制款.窗体
|
|||
|
|
{
|
|||
|
|
public partial class InputBoxForm : Form
|
|||
|
|
{
|
|||
|
|
public string InputText { get; private set; }
|
|||
|
|
|
|||
|
|
public InputBoxForm(string title, string prompt)
|
|||
|
|
{
|
|||
|
|
InitializeComponent();
|
|||
|
|
this.Text = title;
|
|||
|
|
lblPrompt.Text = prompt;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
private void btnOK_Click(object sender, EventArgs e)
|
|||
|
|
{
|
|||
|
|
InputText = txtInput.Text;
|
|||
|
|
this.DialogResult = DialogResult.OK;
|
|||
|
|
this.Close();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
private void btnCancel_Click(object sender, EventArgs e)
|
|||
|
|
{
|
|||
|
|
this.DialogResult = DialogResult.Cancel;
|
|||
|
|
this.Close();
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|