在Form1窗体中有一个名称为textBox1的文本框,其MultiLine属性值为True,ScrollBars属性值为Both;一个名称为button1的命令按钮,其标题为“显示”。将下列的事件程序补充完整,使得程序运行后,单击“显示”按钮,从文件“d:\test.txt"中将内容读出,显示在textBox1文本框中。
private void button1. _Click(object sender, EventArgs e)
{
String line;
StreamReader sr = new StreamReader("d:\\test.txt" true);
while (line_____ ())!=null) //(1)
textBox1.Text += line + Environment.NewLine;
sr.____ ; // (2)
}