Dislocating a shoulder is a relatively quick recovery, if it is the first time it has happened. Give it two weeks rest, and keep inflammation down with ice packs and a good anti-inflammatory, if necessary. This will help get you back on track quicker. Next, the ligaments which hold the shoulder in place may be damaged or stretched, so the first exercises to start will be with very light weights (2kg-3kg), just working on the shoulder mobility and strength with internal and external rotations, working on the rotator cuff muscles.
Keeping up with all your other regular exercises which do not aggravate the shoulder is absolutely fine, and you won't lose form if you keep those up. Gradually add in fly's, reverse fly's, dumbbell bench, dumbbell shoulder press, etc all at VERY light weights. The final step will occur in the 4 to 6th week post-injury, where you gradually increase the intensity back to what it was prior to the dislocation. It is a good idea to continue to work on tightening and strengthening the rotator cuff muscles from now on to prevent another dislocation.