Example #1
0
        private void InitConceptGroup(TreeListNode _fnode)
        {
            using (MetaDataServiceClient _mdc = new MetaDataServiceClient())
            {
                IList <MD_ConceptGroup> _groups = _mdc.GetConceptGroups();
                foreach (MD_ConceptGroup _group in _groups)
                {
                    TreeListNode _node = treeList1.AppendNode(null, _fnode);
                    _node.ImageIndex       = 1;
                    _node.SelectImageIndex = 0;

                    _node.SetValue(this.treeListColumn1, _group);
                    _node.HasChildren = true;
                    foreach (MD_ConceptItem _item in _group.Items)
                    {
                        TreeListNode _cnode = treeList1.AppendNode(null, _node);
                        _cnode.ImageIndex       = 1;
                        _cnode.SelectImageIndex = 0;
                        _cnode.SetValue(this.treeListColumn1, _item);
                        _cnode.HasChildren = false;
                    }
                }
            }
        }