(a) This chapter shall be enforced by the office of the building official. Citations for violations may be issued by the building official of the county. (b) Any person violating this article shall be tried before the magistrate court of the county. Upon conviction, a violation of this article may be punished as provided in section 1-15. (c) In case of any violation or attempted violation of the provisions of this chapter, the county may institute any appropriate action or proceeding to prevent such violation or attempted violation.