public static RelayCommand GetPlaceMultipleFilesCommand(IEnumerable <DataRepositoryItem> selectedItems) { var newCommand = new RelayCommand(() => { DataRepositoryItem dataRepositoryItem = selectedItems.FirstOrDefault(); if (dataRepositoryItem != null) { DataRepositoryItem rootItem = dataRepositoryItem.GetRootDataRepositoryItem(); rootItem.SourcePlugin.DropOnMap(selectedItems); } }); return(newCommand); }
public static DataRepositoryPlugin GetSourcePlugin(this DataRepositoryItem dataRepositoryItem) { var rootDataRepsitory = dataRepositoryItem.GetRootDataRepositoryItem(); return(rootDataRepsitory.SourcePlugin); }