public override bool CanDrag(ITreeNode node) { if (node == null) { return(false); } return(node.IsAnImplementationOf <SimulationNode>() || node.IsAnImplementationOf <ComparisonNode>() || node.IsAnImplementationOf <ClassificationNode>() || _parameterAnalysablesInExplorerPresenter.CanDrag(node)); }
public override bool CanDrag(ITreeNode node) { if (node == null) { return(false); } var tag = node.TagAsObject; if (tag.IsAnImplementationOf <DataRepository>()) { return(true); } return(node.IsAnImplementationOf <SimulationNode>() || node.IsAnImplementationOf <ClassificationNode>() || _parameterAnalysablesInExplorerPresenter.CanDrag(node)); }