예제 #1
0
        public override ModelTreeNode AddItem()
        {
            var model = new LootEntry();
            var node  = new LootEntryTreeNode();

            node.AddDefaultChildNodesHack();
            node.Model = model;

            AddSibling(node);

            return(node);
        }
        //public LootEntrysContainerTreeNode(LootDefinition model) : this()
        //{
        //	Model = model;
        //}

        public override void AddChildModel(IModel model)
        {
            var node = new LootEntryTreeNode()
            {
                Model = model
            };

            node.AddDefaultChildNodesHack();

            //add to tree
            Nodes.Add(node);
        }
        public override ModelTreeNode AddItem()
        {
            var item = new LootEntry();
            var node = new LootEntryTreeNode()
            {
                Model = item
            };

            node.AddDefaultChildNodesHack();
            Nodes.Add(node);

            return(node);
        }