private void deviceManagementt_Load(object sender, EventArgs e) { this.pictureBox1.Image = Image.FromFile(@str + "/images/sh.png"); this.pictureBox2.Image = Image.FromFile(@str + "/images/ncg.png"); this.pictureBox3.Image = Image.FromFile(@str + "/images/xcg.png"); this.pictureBox4.Image = Image.FromFile(@str + "/images/bc.png"); this.pictureBox5.Image = Image.FromFile(@str + "/images/xdt.png"); this.pictureBox6.Image = Image.FromFile(@str + "/images/sgtz.png"); this.pictureBox7.Image = Image.FromFile(@str + "/images/xyj.png"); this.pictureBox8.Image = Image.FromFile(@str + "/images/sfz.png"); this.pictureBox9.Image = Image.FromFile(@str + "/images/sxt.png"); this.pictureBox10.Image = Image.FromFile(@str + "/images/dyj.png"); xmlDoc.Load(path); XmlNode node; node = xmlDoc.SelectSingleNode("config/shxqAgreement"); string shxqAgreement = node.InnerText;//生化血球厂家协议 sxa = shxqAgreement.Split(','); DataTable dtDeviceType = tjdao.checkDevice(); showStatus(dtDeviceType); }