protected virtual void OnDragDrop(object sender, DragEventArgs e) { var droppedObservedData = _observedDataDragDropBinder.DroppedObservedDataFrom(e); droppedObservedData.Each(AddObservedData); RefreshData(); }
public virtual void OnDragDrop(object sender, IDragEvent e) { var droppedObservedData = _observedDataDragDropBinder.DroppedObservedDataFrom(e); AddObservedData(droppedObservedData.ToList()); RefreshData(); }
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()); } }
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); } }
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()); } } }
protected virtual void OnDragDrop(object sender, IDragEvent e) { var droppedObservedData = _observedDataDragDropBinder.DroppedObservedDataFrom(e).ToList(); AddObservedData(droppedObservedData, asResultOfDragAndDrop: true); }
protected virtual void OnDragDrop(object sender, DragEventArgs e) { var droppedObservedData = _observedDataDragDropBinder.DroppedObservedDataFrom(e); droppedObservedData.Each(data => AddObservedData(data, asResultOfDragAndDrop: true)); }