Sounds like a fuel issue. Generally speaking, sitting in the sun for a few hours will not cause heat related electronic failure.
What do your plugs look like? What does your spark look like?
Who advised you to replace ignition switch in a car that cranks and starts in "clear flood" mode?