CDP4SiteDirectory.ViewModels.DomainOfExpertiseBrowserViewModel.RemoveDomainOfExpertise C# (CSharp) Method

RemoveDomainOfExpertise() private method

Remove a row representing a DomainOfExpertise
private RemoveDomainOfExpertise ( DomainOfExpertise domainOfExpertise ) : void
domainOfExpertise DomainOfExpertise /// The that is to be removed. ///
return void
        private void RemoveDomainOfExpertise(DomainOfExpertise domainOfExpertise)
        {
            var row = this.DomainOfExpertises.SingleOrDefault(x => x.Thing == domainOfExpertise);
            if (row != null)
            {
                this.DomainOfExpertises.RemoveAndDispose(row);
            }
        }