单项选择题

窗体上有Text1、Text2两个文本框及一个命令按钮Command1,编写下列程序:
Dim y As Integer
Private Sub Command1_Click()
Dim x As Integer
x=2
Text1.Text=p2(pl(x),y):Text2.Text=pl(x)
End Sub
Private Function pl(x As Integer)As Integer
x=x+y:y=x+y
pl=x+y
End Function
Private Function p2(x As Integer,y As Integer)As Integer
p2=2*x+y
End Function
程序运行后,第一次单击和第二次单击命令按钮后,文本框Text1和Text2内的值分别是( )。

A.2 4
2 4
B.2 4
4 8
C.10 10
58 58
D.4 4
8 8