单项选择题

______ the window, my finger was cut unexpectedly.

A.Cleaning
B.To clean
C.While cleaning
D.While I was cleaning