添加项目文件。
This commit is contained in:
30
口罩泄露定制款/UserControl/InputBoxForm.cs
Normal file
30
口罩泄露定制款/UserControl/InputBoxForm.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user