private void optionTree_AfterSelect(object sender, TreeViewEventArgs e) { if( e != null && e.Node != null && e.Node.Tag != null ) propertyGrid.SelectedObject = new DictionaryPropertyGridAdapter((IDictionary<string, PropertyOption>)e.Node.Tag); }