示例#1
0
        private void TreeViewAdapterSelectionChanged(object sender, EventArgs e)
        {
            var selected = m_treeViewAdapter.GetLastSelected <Tree <object> >();

            if (selected == null)
            {
                return;
            }

            Items = new[] { selected };
            var properties = m_settingsService.GetPropertiesInternal(selected);

            if (properties != null)
            {
                PropertyDescriptors = properties.ToArray();
            }
        }