示例#1
0
        /// <summary>
        /// Builds features tree.
        /// This operatio is performed when control is created.
        /// </summary>
        void BuildFeaturesTree()
        {
            _featureNodes.Clear();
            _featuresSet = FeaturesSet.CreateFeaturesSet();
            FeaturesHelper.Translate(_featuresSet);

            foreach (FeatureNode node in _featuresSet.Nodes)
            {
                AddFeatureNode(null, node);
            }

            tvFeatures.ExpandAll();

            TreeNode tn = tvFeatures.Nodes[0];

            tn.EnsureVisible();
        }