public void DeleteSampleDataSet(SampleDataSet dataSet) { TypesChangedEventArgs e = new TypesChangedEventArgs((ICollection <TypeChangedInfo>) new List <TypeChangedInfo>() { new TypeChangedInfo(dataSet.RootType.RuntimeAssembly, ModificationType.Modified), new TypeChangedInfo(RuntimeGeneratedTypesHelper.BlendDefaultAssembly, ModificationType.Modified) }); this.OnSampleDataRemoving(dataSet); this.dataSets.Remove(dataSet); dataSet.RemoveFromProjectAndClose(); this.SafelyRemoveSampleDataAndRootFolder(dataSet, false); this.projectContext.OnTypesChanged(e); }