private void propertyGrid1_PropertyValueChanged(object s, PropertyValueChangedEventArgs e) { XProps xps = propertyGrid1.SelectedObject as XProps; if (xps != null && xps._obj is config_skill) { frame1.UpdateSkill(_selected_skill); } }
void DrawProperty(object obj) { if (obj != null) { XProps xps = new XProps(obj); propertyGrid1.SelectedObject = xps; } else { propertyGrid1.SelectedObject = null; } }