controlmethod class added into adcontrols as pure c++