Example #1
0
 void btnOKClick(object sender, EventArgs e)
 {
     if (FindReferencesAndRenameHelper.CheckName(this.txtName.Text, string.Empty))
     {
         this.Text             = this.txtName.Text;
         this.DialogResult     = DialogResult.OK;
         this.declaration.Body = body;
         cancelUnload          = false;
     }
     else
     {
         cancelUnload = true;
     }
 }