custom dialogs should inherit from CustomDialog... also, be sure to return DialogResult.OK before closing dialog

This commit is contained in:
Michael Becker 2020-02-12 01:25:21 -05:00
parent cc1ca6fa60
commit 5358a28c7c
No known key found for this signature in database
GPG Key ID: 506F54899E2BFED7

View File

@ -140,7 +140,7 @@ namespace UniversalEditor.UserInterface.Dialogs
}
}
public partial class NewDialog : Dialog
public partial class NewDialog : CustomDialog
{
public NewDialog()
{
@ -637,6 +637,8 @@ namespace UniversalEditor.UserInterface.Dialogs
break;
}
}
this.DialogResult = DialogResult.OK;
this.Close();
}