public static CustomAttributEditorPerson CreateCustomAttributEditorPerson() { var person = new CustomAttributEditorPerson(); person.FirstName = "John"; person.LastName = "Doe"; person.DateOfBirth = new DateTime(1975, 1, 23); return(person); }
public CustomEditors() { InitializeComponent(); _propertyGrid1.SelectedObject = Person.CreatePerson(); _propertyGrid2.SelectedObject = CustomAttributEditorPerson.CreateCustomAttributEditorPerson(); }