Settiin button to enabled/disabled from fields

God morning

I'm finish up my project and I have a new question to make the a better user experience.

When i click on a row in the grid the field above the grid are set, the user will den either enter hour, minutes and seconds or select a value from the dropdone CODE= (DNC, OCS, DNE...)

I would like the button to be enabled when all 3 fields are entered or when the value is selected in the drop down.

Something like this
IF ((FinishingTimeHH <> " " AND FinishingTimeMM <> " " FinishingTimeSS <> " " ) OR Code <> " ") THEN
button.enabled = true ELSE button.enabled = false
END

Some ideas?

You should set expression for Disabled property of the Button to desired condition:
Disabled=@(someValue != null && someOtherValue != null)

DropDown and TextBoxes should be bound to variables using @bind-Value.