The next thing to consider is why did the chain break the case. Are the sprockets worn out? Is the chain worn out? Was the chain too slack? The above things need to be rectified now, otherwise you may need to do the whole repair job again the next time you ride. Chains come off for a good reason, usually from inadequate maintainence or excessive wear.