//TODO add more functionality here public PlacedDataItem CopyConfigurationAndAddToList(ConfigurationDataItem dataItem, string configurationName) { var basePath = _globalSettings.Get("BasePath").ToString(); var itemsPath = _globalSettings.Get("ItemsPath").ToString(); var sourcePath = Path.Combine(itemsPath, configurationName, dataItem.ItemName); var calculatedName = CalculatedItemName(dataItem); string destinationPath = ""; if (FoldersHelper.CheckIfConfigFileExists(sourcePath)) { destinationPath = Path.Combine(basePath, "Projects", ProjectsData.CurrentProjectName, ProjectsData.CurrentConfigurationName, "Configurations"); FoldersHelper.CopyFileToLocation(Path.Combine(sourcePath, dataItem.ItemName + ".conf"), destinationPath, calculatedName + ".conf"); } //return Placeid // AddItemToSelectedCollection(calculateditemName, destinationPath); return(new PlacedDataItem(calculatedName, destinationPath)); }