The prosecution for the violation of county codes and resolutions pursuant to this code shall be commenced by the filing of a complaint with the district court.