Ejemplo n.º 1
0
 public void UpdateCategory(string name, string type)
 {
     Category updated = new Category(name, type);
     updated.Subcategories.AddRange(BoundCategory.Subcategories);
     this.Text = updated.ToString();
     BoundCategory = updated;
 }
Ejemplo n.º 2
0
        public BindableCategory(Category bindMe)
        {
            this.Text = bindMe.ToString();
            this.Tag = "Category";
            BoundCategory = bindMe;

            foreach (Subcategory sc in bindMe.Subcategories)
            {
                this.Nodes.Add(new BindableSubcategory(sc));
            }
        }