I do an almost entire assembly before painting. Cut the panels, attach the support battens, dry assemble. Break it down but leave the battens on the panels. Then paint. Also, after it's re-assembled I hit the inside of the cabinet with a coat of spray paint. Helps seal the MDF and makes it look a lot cleaner.