Disable warehouse how is working?

when i check the box of disable warehouse .then the warehouse is disable .here i am confused how this are work .internally how this working can any one help me to solve this .?
i just want to understand the background logic of its… when check box is click and then it is disable and enable …please help me to solve this …