private void SelectSingleItem(string itemName) { tbxName.Text = itemName; XmlNodeList nodelist = configele.SelectNodes(string.Format("Item[@Name='{0}']", itemName)); if (nodelist.Count > 0) { XmlElement ele = (XmlElement)nodelist[0]; tbxName.Text = ele.GetAttribute("Name"); cbbConfigType.Text = ele.GetAttribute("Type"); cbbDataBase.Text = ele.GetAttribute("DataBase"); tbxPath.Text = ele.GetAttribute("Path"); tbxContent.Text = FileStreamHelper.ReadText(string.Format("{0}{1}{2}\\{3}", Application.StartupPath, configDataPath, configItemName, ele.GetAttribute("Name"))); } }