Does "case" mean the same thing in these two sentences?

It may rain in which case the picnic will be canceled.

A door case.
different meanings