Added detection for design mode
This commit is contained in:
5 files changed
+34
-5
No files matched your search
@@ -48,6 +48,9 @@ public partial class InputDialog : Form
|
||||
|
||||
private void buttonOk_Click(object sender, EventArgs e)
|
||||
{
|
||||
if(this.DesignMode)
|
||||
return;
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(this.textBoxInput.Text))
|
||||
{
|
||||
this.DialogResult = DialogResult.OK;
|
||||
|
||||
Reference in new issue
Block a user