private void AddSelectedNode(Tree node) { PropertiesControl pc = SelectedNodes.FirstOrDefault(s => s.Node == node); if (pc == null) { pc = new PropertiesControl(); IEnumerable<string> annotationlibnames = _prefabInterpretationLogic.GetAnnotationLibraries();//AnnotationLibrary.GetAnnotationLibraries(_prefabChain); Bitmap screenshot = _currentBitmapImage; Bitmap representativeImage = Bitmap.Crop(screenshot, node); pc.SetProperties(node, _currTree, screenshot, GetPrototypeLibraryName(), _prefabInterpretationLogic, representativeImage, annotationlibnames); SelectedNodes.Add(pc); TreeBrowserControl.SelectNode(node); } }