Added detection for design mode

This commit is contained in:
tsommer committed 2022-07-10 20:30:28 +02:00
1 parent aa641770d2
commit 3dfaccc99f
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;