コード例 #1
0
ファイル: SettingsDialogViewModel.cs プロジェクト: zparr/ATF
        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();
            }
        }