protected virtual void OnDragDrop(object sender, DragEventArgs e)
        {
            var droppedObservedData = _observedDataDragDropBinder.DroppedObservedDataFrom(e);

            droppedObservedData.Each(AddObservedData);
            RefreshData();
        }
Beispiel #2
0
        public virtual void OnDragDrop(object sender, IDragEvent e)
        {
            var droppedObservedData = _observedDataDragDropBinder.DroppedObservedDataFrom(e);

            AddObservedData(droppedObservedData.ToList());
            RefreshData();
        }
Beispiel #3
0
 protected virtual void OnDragDrop(object sender, DragEventArgs e)
 {
     if (simulationResultsIsBeingDragged(e) && CanDropSimulation)
     {
         var historicalResultsNodes = e.Data <IList <ITreeNode> >().OfType <HistoricalResultsNode>();
         addHistoricalResults(historicalResultsNodes.Select(result => result.Tag).ToList());
     }
     else
     {
         var droppedObservedData = _observedDataDragDropBinder.DroppedObservedDataFrom(e);
         addObservedData(droppedObservedData.ToList());
     }
 }
Beispiel #4
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 #5
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());
         }
     }
 }
Beispiel #6
0
        protected virtual void OnDragDrop(object sender, IDragEvent e)
        {
            var droppedObservedData = _observedDataDragDropBinder.DroppedObservedDataFrom(e).ToList();

            AddObservedData(droppedObservedData, asResultOfDragAndDrop: true);
        }
Beispiel #7
0
        protected virtual void OnDragDrop(object sender, DragEventArgs e)
        {
            var droppedObservedData = _observedDataDragDropBinder.DroppedObservedDataFrom(e);

            droppedObservedData.Each(data => AddObservedData(data, asResultOfDragAndDrop: true));
        }