예제 #1
0
        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);
        }
예제 #2
0
        public static DataRepositoryPlugin GetSourcePlugin(this DataRepositoryItem dataRepositoryItem)
        {
            var rootDataRepsitory = dataRepositoryItem.GetRootDataRepositoryItem();

            return(rootDataRepsitory.SourcePlugin);
        }