An individual elected or appointed to an office shall be deemed to have refused the office if the individual declines or neglects to take and subscribe the oath required by Article I, § 9 of the Maryland Constitution or by other State or local law:
(1) within 30 days after the office of a clerk of a circuit court receives the commission of the individual; or
(2) if the commission is not sent to a clerk of a circuit court, within 30 days after the individual receives the commission or the notice of appointment.