private void Ball_Load(object sender, EventArgs e) { label1.Text = wardName + "病区"; PivasNurseBall.PivasNurseBall pnb = new PivasNurseBall.PivasNurseBall(); string[,] fn = new string[3, 4]; fn = pnb.GetInfor(wardCode); label2.Text = fn[0, 0]; label3.Text = fn[0, 1]; label4.Text = fn[0, 2]; label5.Text = fn[0, 3]; label6.Text = fn[1, 0]; label7.Text = fn[1, 1]; label8.Text = fn[1, 2]; label9.Text = fn[1, 3]; btn1.Text = fn[2, 0]; btn2.Text = fn[2, 1]; btn3.Text = fn[2, 2]; btn4.Text = fn[2, 3]; btn1.Visible = !string.IsNullOrEmpty(fn[2, 0]); btn2.Visible = !string.IsNullOrEmpty(fn[2, 1]); btn3.Visible = !string.IsNullOrEmpty(fn[2, 2]); btn4.Visible = !string.IsNullOrEmpty(fn[2, 3]); }