单项选择题

His father had promised to buy him a computer ______ he behaved himself.

A.in case
B.while
C.after
D.provided