Gedeon Michał Tryzna - politician, Polish–Lithuanian Commonwealth