public void AddCategory(NodeCategory node,string parentName) { NodeCategory n = new NodeCategory(node); if (node.IsLeaf()) { n.Text = parentName + " \\ " + n.Text; treeView1.Nodes.Add(n); } foreach (NodeCategory nchild in node.Nodes) { AddCategory(nchild,parentName + " \\ "+ node.Text); } }
private void FillGuiCategory(NodeCategory n) { textBoxEnglish.Text = n.EnglishText; textBoxFrench.Text = n.FenchText; textBoxPictureCategory.Text = n.Bitmap; if (textBoxPictureCategory.Text == "") { pictureBoxCategoryPicture.Visible = false; } else { pictureBoxCategoryPicture.Visible = true; } textBoxDeutch.Text = n.DeutchText; textBoxItalian.Text = n.ItalianText; textBoxSpanish.Text = n.SpanishText; labelPathCategory.Text = n.Directory; }
public NodeCategory(NodeCategory node) { elm = node.elm; Text = elm.Attributes["name"].Value; }