public void RefreshProps(TankShape tankShape) { ITank tank = fRecord.GetTank(tankShape, fRecord.TankProperties); TypeDescriptor.AddAttributes(tank, new Attribute[] { new ReadOnlyAttribute(true) }); tank.SetPropNames(); fView.PropsGrid.SelectedObject = tank; RecalcValues(); }