Beispiel #1
0
 protected virtual void OnDragDrop(object sender, IDragEvent e)
 {
     if (_userSettings.ColorGroupObservedDataFromSameFolder)
     {
         var observedDataListGroupedByFolder = _observedDataDragDropBinder.DroppedObservedDataWithFolderPathFrom(e);
         AddColorGroupedObservedData(observedDataListGroupedByFolder);
     }
     else
     {
         var droppedObservedData = _observedDataDragDropBinder.DroppedObservedDataFrom(e).ToList();
         AddObservedData(droppedObservedData, asResultOfDragAndDrop: true);
     }
 }
Beispiel #2
0
 protected virtual void OnDragDrop(object sender, IDragEvent e)
 {
     if (simulationResultsIsBeingDragged(e) && CanDropSimulation)
     {
         var historicalResultsNodes = e.Data <IList <ITreeNode> >().OfType <HistoricalResultsNode>();
         addHistoricalResults(historicalResultsNodes.Select(result => result.Tag).ToList());
     }
     else
     {
         if (_userSettings.ColorGroupObservedDataFromSameFolder)
         {
             var droppedObservedDataWithFolderAddress = _observedDataDragDropBinder.DroppedObservedDataWithFolderPathFrom(e);
             addColorGroupedObservedData(droppedObservedDataWithFolderAddress);
         }
         else
         {
             var droppedObservedData = _observedDataDragDropBinder.DroppedObservedDataFrom(e);
             addObservedData(droppedObservedData.ToList());
         }
     }
 }