No judge of the Tax Court, except referees appointed for the Small Claims Division, shall, within one year after the office or employment has terminated, act as counsel, attorney, or agent in connection with any claim or proceeding pending in the Tax Court at the time of termination. No judge, referee, or employee shall, at any time after the termination of the office or employment, act as counsel, attorney, or agent in connection with any claim or proceeding of which the person terminated has knowledge which was acquired in the course of a term of office or employment in the Tax Court. Any violation of the provisions of this section shall be a gross misdemeanor.