Jack Doohan secured his first win of the Formula 2 season in style around the Hungaroring, leading lights to flag from pole position and taking fastest lap along the way.