InputText: Fixed multi-threading issues

This commit is contained in:
spx
2013-03-02 00:29:25 +09:00
parent 76e504d1e5
commit 167123bcf7
3 changed files with 210 additions and 113 deletions

View File

@ -294,6 +294,9 @@ namespace InputText
public bool ShowInputBox()
{
if (this.drBackup != DialogResult.None)
return false;
if (this._FocusDismiss)
{
this.Show(this.parent);
@ -324,6 +327,12 @@ namespace InputText
return true;
}
public void Abort()
{
this.drBackup = DialogResult.Cancel;
this.Close();
}
private void txtInput_Leave(object sender, EventArgs e)
{
if (this._FocusDismiss)