摘要: this.listView1.View = View.Details; this.listView1.Scrollable = true; this.listView1.MultiSelect = false; this.listView1.HeaderStyle = ColumnHeaderStyle.Nonclickable; this.listView1.Columns.Add("Chang... 阅读全文
posted @ 2010-01-02 12:36 greencolor 阅读(366) 评论(1) 推荐(0)
摘要: XmlDocument xmlDoc = new XmlDocument(); xmlDoc.Load("bookstore.xml"); XmlNodeList xnl = xmlDoc.SelectSingleNode("bookstore").ChildNodes; foreach (XmlNode xn in xnl) { XmlElement xe = (XmlElement)xn; i... 阅读全文
posted @ 2010-01-02 12:03 greencolor 阅读(253) 评论(0) 推荐(0)
摘要: XmlDocument xmlDoc = new XmlDocument(); xmlDoc.Load("bookstore.xml"); XmlNodeList nodeList = xmlDoc.SelectSingleNode("bookstore").ChildNodes;//获取bookstore节点的所有子节点 foreach (XmlNode xn in nodeList)//遍历... 阅读全文
posted @ 2010-01-02 12:02 greencolor 阅读(126) 评论(0) 推荐(0)
摘要: XmlDocument xmlDoc = new XmlDocument(); xmlDoc.Load("bookstore.xml"); XmlNode root = xmlDoc.SelectSingleNode("bookstore");//查找<bookstore> XmlElement xe1 = xmlDoc.CreateElement("book");//创建一个<... 阅读全文
posted @ 2010-01-02 12:01 greencolor 阅读(253) 评论(0) 推荐(0)