protected override void OnValidate() { if (_item.OrderStatus().IsShipped) { Invalidate("Shipped items cannot be deleted"); } } }