Beispiel #1
0
 /// <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;
 }
Beispiel #2
0
        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);
        }