OK. Luckily for you, that's not the CDIC coil. They're almost impossible to replace. And when they blow, you need to replace the coil and flywheel, as that wheel is only good for that specific coil.
You have either the Bosch 1122-400-1300 with the 1122-400-1201 flywheel, or the universal 0000-400-1300 coil with the 1122-400-1203 flywheel. Tough to tell between those two without pulling the coil and looking at the side of it. But that's easy - couple of bolts.
But now that the saw's working, you're golden anyway. Just remember the above stuff for future maintenance.