コード例 #1
0
 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);
     }
 }
コード例 #2
0
ファイル: DemoForm.cs プロジェクト: zebulon75018/mauriceadmin
 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;
 }
コード例 #3
0
 public NodeCategory(NodeCategory node)
 {
     elm = node.elm;
     Text = elm.Attributes["name"].Value;
 }