public override string ToString() { throw null; } }
private void SwitchControl(Component obj) { if (obj != null) { if (propertyGrid.SelectedObject != obj) { Text = obj.ToString(); propertyGrid.SelectedObject = obj; propertyGrid.PropertySort = PropertySort.Alphabetical; } } }