Пример #1
0
 void adder_AnnotationAdded(object sender, PropertiesControl.AnnotationAddedArgs e)
 {
     JObject isTarget = new JObject();
     isTarget["is_target"] = "true";
     AddAnnotation("target_corrections", isTarget);
 }
Пример #2
0
        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);
            }
        }