foreach (XmlNode node in choices)
{
if (node.Attributes.Count == 6)
{
// Sets ChoiceTitltes to be the Title of the next item in line
ChoiceTitles = node.Attributes["title"].InnerText;
// Adds ChoiceTitle (The Title of each item) to ChoiceTitle in order that its in the Distribution File
RemPKG_treeview.Nodes.Add(ChoiceTitles);
// Increases the choiceamount for later use with finding which choice is selected and that ID, then later it will delete it from the Xmlfile and the package itself
ChoiceAmount++;
// Selects the pkg-ref subnode of Choice
XmlNode pkgrefchoice = doc.SelectSingleNode("installer-gui-script/choice/pkg-ref");
// This statement is for declaring the array pkgidnumber, for
foreach (XmlNode Childnode in pkgrefchoice)
{
pkgidnumber[ChoiceAmount] = pkgrefchoice.Attributes["id"].InnerText;;
}
}
}
}
private void DelPkg_button_Click(object sender, EventArgs e)
{
}
This code for the treeview would execute at the DelPKg_button_Click
Thanks
This post has been edited by Jarrhed: 07 September 2009 - 08:36 PM

New Topic/Question
Reply




MultiQuote




|