The sheriff of a county adopting any form of county managership must be elected in the manner prescribed by general statutes and must perform the duties and be subject to the restrictions contained in the general statutes. The sheriff of an adjoining county may run for election in a county that has adopted a short form of county managership. The compensation of the sheriff of an adjoining county must be that agreed upon by the sheriff so elected, the county manager, and the boards of county commissioners of the counties affected.