Try and see what happens.
Pull the dishwasher out and tip it backward as see if any water come sout from the base at the bottom. You may need a towel for that part.
As the wash and dry lights flashing is usually the error code for a water leak in the base.
Once the water is drained out the base the anti flood switch should reset itself and allow you to start a wash cycle going.
Then just see how it goes. Fingers crossed this should sort it but if it does it again then there is a water leak under there which you need to find and fix to cure it.
Let me know how it goes.
Ok from the sounds of this theres a water leak so as its filling water must be leaking into the base and activating the flood switch each time you clear it.
What you need to do is remove the top and both side panels. Then lift the green insulation up which you will see.
Then clear the base again of water and set it going. As its filling watch it from underneath and try and see were the leak is coming from then you can fix it and that should sort the fault out from there.