I hate to be the one to tell you Stuart but only the original selling dealer can program the fobs the first time as they have the secret code. Sorry your selling dealer went out of business. May as well pony up for some new fobs...
NOT TRUE take BOTH fobs to your "potentially new" dealer and they should program

or replace the battery in the fob/s they will just hook the bike up to the DTII and it should all be N/C under warranty.
I truly do not like dealership persons that give the good ones a bad name. many dealers, ours included, does not set the security on bikes to make it easier to move them about when moving inventory around. We program them with the owners own personal pin code,while doing the personal delivery process....and confirm that both fobs work when explaining the security system on the walk around explaining hows and whys about the specific bike...why be generic. Did you perhaps decline that walkaround process because you thought you knew it all and in the process your salesman did not do his job by completing the process. you should have signed off on a delivery sheet that you had inspected everything and that everything was in acceptable condition.

calling all dealers stealers is like condemning all Harley riders as drunken thugs just because of 1 bad apple. if you are unhappy with your dealer DONT GO BACK find another one I know there may be bad experiences at any shop at any given day...dealer or independent shop