Exemplo n.º 1
0
 /// <summary>
 /// odstrani jen GUI element
 /// </summary>
 public void RemoveGraphicalObjectFromScene(Drawing obj, DrawingCategory category = DrawingCategory.BACKGROUND)
 {
     BeginInvoke(new Action(() =>
     {
         area.Remove(obj, category);
     }));
 }
Exemplo n.º 2
0
 /// <summary>
 /// prida GUI objekt do sceny - nikoliv SceneObject
 /// </summary>
 public void AttachGraphicalObjectToScene(Drawing obj, DrawingCategory category = DrawingCategory.BACKGROUND)
 {
     BeginInvoke(new Action(() =>
     {
         area.Add(obj, category);
     }));
 }
 partial void OnCategoryChanging(DrawingCategory value);
Exemplo n.º 4
0
 public void Remove(Drawing elem, DrawingCategory cat = DrawingCategory.BACKGROUND)
 {
     (children[(int)cat] as ExtraDrawingVisual).DrawingChildren.Remove(elem);
 }
 partial void OnCategoryChanging(DrawingCategory value);