private void Interpret(IDecompositionMessage <ISceneNodeComponent> obj) { ISceneNodeComponent sceneNode = obj.Instance; sceneNode.ParentNodeChanged -= OnParentSceneNodeChanged; _sceneRoots.Remove(sceneNode); }
private void Interpret(ICompositionMessage <ISceneNodeComponent> obj) { ISceneNodeComponent sceneNode = obj.Instance; if (sceneNode.ParentNode == null && !_sceneRoots.Contains(sceneNode)) { _sceneRoots.Add(sceneNode); } sceneNode.ParentNodeChanged += OnParentSceneNodeChanged; }
private bool TryEditAspect(ISceneNodeComponent component) { /* * if (aspect is HyperLinkEditAspect) * { * // todo: undo-redo * var cAspect = (HyperLinkEditAspect)aspect; * var result = new HyperLinkAspectCreationDialog(worldTreeService, cAspect).ShowModal(); * if (result != null) * { * cAspect.TargetNodeName = result.TargetNodeName; * return true; * } * } * else if (aspect is ISceneAspect) * { * * }*/ return(false); }
private static string GetAspectName(ISceneNodeComponent component) { return(component.AmInterface.Name); }