I need to do a check and if it is true
, the button is still enabled, if it is false
, the button should be disabled ...
How could I do this?
Until now I only have the if, because I do not know how to do this:
if(true)
{
//aqui faz minha verificações
}
else
{
//aqui faria com que o botão fosse desabilitado
}
Is there any easy way to do this? Could someone help me?