//Validate an enum
if(NetOccupied.valueStr() == enum2str(NetOccupied::Vacant))
CreateReservation.enabled(true);
else
CreateReservation.enabled(false);
if(NetOccupied.valueStr() == enum2str(NetOccupied::Vacant))
CreateReservation.enabled(true);
else
CreateReservation.enabled(false);
No comments:
Post a Comment