Saving Resolution with Pre-construct?

Well this is my code. Not sure how to do it with resolution tho.