예제 #1
0
        private void typeTreeView_AfterSelect(object sender, TreeViewEventArgs e)
        {
            if (e.Node.LastNode != null)
            {
                valuesList.Items.Clear();
                valuesList.SelectedItems.Clear();
                editTextBoxesUpdate();
                return;
            }


            valuesList.Items.Clear();

            string key = e.Node.FullPath;

            foreach (var k in keys[key].OrderBy(k => k))
            {
                var    item    = valuesList.Items.Add(k);
                string fullkey = string.Format("{0}:{1}", key, k);
                item.SubItems.Add(settings.GetString(fullkey));
                item.SubItems.Add(settings.GetDescription(fullkey));
            }
            valuesList.Items[0].Selected = true;
        }