/// <summary> /// When resources are dropped on the workspace button, adds them to the workspace. /// </summary> protected override void OnDragDrop(DragEventArgs drgevent) { base.OnDragDrop(drgevent); if (drgevent.Data.GetDataPresent(typeof(IResourceList))) { IResourceList resList = (IResourceList)drgevent.Data.GetData(typeof(IResourceList)); AddToWorkspaceAction.AddResourcesToWorkspace(resList, _workspace); } ForeColor = SystemColors.WindowText; }
private void UpdateTree(IResourceList selResourceList, ArrayList skippedResources) { if (_tvInWorkspace.IsDisposed) { return; } if (_needRebuildTree) { _tvInWorkspace.UpdateNodeFilter(true); } _tvInWorkspace.ExpandAll(); _tvInWorkspace.SelectResourceNodes(selResourceList); AddToWorkspaceAction.ReportSkippedResources(FindForm(), skippedResources); }