圖
如果要把這些書的成本相加
private void button
{
//modify to match your path structure
XPathDocument doc = new XPathDocument(
//create the XPath navigator
XPathNavigator nav = doc
//create the XPathNodeIterator of book nodes
// that have genre attribute value of novel
XPathNodeIterator iter = nav
while(iter
{
LoadBook(iter
}
//add a break line and calculate the sum
listBox
listBox
+ nav
}
這次
圖
[
From:http://tw.wingwit.com/Article/program/net/201311/14663.html