public virtual bool CanDelete(DesignContext designContext) { if (designContext != null) { return(ModelTools.CanDeleteComponents(designContext.Services.Selection.SelectedItems)); } return(false); }