单项选择题

______come out of the building, my first thought was to call the fire department.

A.On seeing the smoke
B.When I saw the smoke
C.Having seen the smoke
D.As soon as the smoke was seen