StableVersion4.3/HL_FristAidPlatform_PreHosp.../Form_PauseCall.cs

42 lines
1023 B
C#

using DevExpress.XtraEditors;
using System;
using System.Windows.Forms;
namespace HL_FristAidPlatform_PreHospitalEmergency
{
public partial class Form_PauseCall : XtraForm
{
public Form_PauseCall()
{
InitializeComponent();
}
public delegate void TextEventHandler(string strText);
public TextEventHandler TextHandler;
private void simpleButton1_Click(object sender, EventArgs e)
{
TextHandler.Invoke(textEdit1.Text);
DialogResult = DialogResult.OK;
}
private void simpleButton2_Click(object sender, EventArgs e)
{
TextHandler.Invoke("取消");
DialogResult = DialogResult.OK;
}
private void textEdit1_KeyPress(object sender, KeyPressEventArgs e)
{
if (Keys.Enter == (Keys)e.KeyChar)
{
TextHandler.Invoke(textEdit1.Text);
DialogResult = DialogResult.OK;
}
}
}
}