public bool Validar() { try { int valor = Convert.ToInt32(_control.Text); return(true); } catch (Exception) { MessageDialog.MensajeValidacionNumerico(NameVariableParser.getNameWithoutUnderscore(_control)); return(false); } }