(a) A person who voted at a primary election or who was a candidate for nomination in a primary is ineligible for a place on the ballot for the succeeding general election for state and county officers as:
(1) an independent candidate for an office for which a candidate was nominated in the primary; or
(2) the nominee of a political party other than the party holding the primary in which the person voted or was a candidate.
(b) A person who was a candidate for nomination in a primary election is ineligible for a place on the list of write-in candidates for the succeeding general election for state and county officers as a write-in candidate for the office sought by that candidate in the primary.