private void btnOk_Click(object sender, EventArgs e)
{
if (txtOther.Visible && txtOther.Text.Trim().Length == 0)
{
MessageBox.Show(this, "The value of Other has not been specified", "Input Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
return;
}
if (this.PakItemFilename.Trim().Length == 0)
{
MessageBox.Show(this, "The pak item filename has not been specified", "Input Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
return;
}
this.DialogResult = DialogResult.OK;
}