Added check for empty strings in RenamePrompt

This commit is contained in:
MattNL
2023-06-02 15:20:30 -04:00
parent da5519b813
commit a05fbd63d5

View File

@@ -23,7 +23,11 @@ namespace PckStudio
private void OKBtn_Click(object sender, EventArgs e)
{
DialogResult = DialogResult.OK;
if (String.IsNullOrEmpty(InputTextBox.Text))
{
MessageBox.Show(this, "Please insert a value in the text box.", "Empty string");
}
else DialogResult = DialogResult.OK;
}
private void RenamePrompt_Load(object sender, EventArgs e)