public void Delete(object configurationItem)
 {
     File.Delete(String.Format("{0}{1}\\{2}.xml", ConfigurationLoader.GetFileConfigurationPath(), ConfigurationFolder, ((ScreenType)configurationItem).Name));
     Configuration.GetInstance().ScreenTypes.Remove(((ScreenType)configurationItem));
 }
 public void Delete(object configurationItem)
 {
     File.Delete(String.Format("{0}{1}\\{2}.xml", ConfigurationLoader.GetFileConfigurationPath(), ConfigurationFolder, ((DocumentRepository)configurationItem).Name));
     Configuration.GetInstance().DocumentRepositories.Remove(((DocumentRepository)configurationItem));
 }