public override void Validate(ValidationMessages messages) { var service = new TaxaService(PluginManager.Instance.User); if (!service.SafeToDeleteTaxon(Taxon.TaxaID.Value)) { messages.Warn("There are material and or associations that will be orphaned if you delete this taxon."); } }