mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-05-24 09:17:00 +00:00
Added check for empty strings in RenamePrompt
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user