예제 #1
0
        private void OnNodeAdded(IntPtr param0, IntPtr param1)
        {
            try
            {
                INotifyInfo obj = Loader.Global.NotifyInfo.Marshal(param1);

                IINode n = (IINode)obj.CallParam;
                //todo replace this with something like isXREFNODE
                //to have a distinction between added xref node and max node
                string guid = n.GetStringProperty("babylonjs_GUID", string.Empty);
                if (string.IsNullOrEmpty(guid))
                {
                    n.GetGuid(); // force to assigne a new guid if not exist yet for this node
                }
                n.DeleteProperty("flightsim_uniqueIDresolved");
                n.DeleteProperty("flightsim_uniqueID");

                IIContainerObject contaner = Loader.Global.ContainerManagerInterface.IsContainerNode(n);
                if (contaner != null)
                {
                    // a generic operation on a container is done (open/inherit)
                    contaner.ResolveContainer();
                }
            }
            catch
            {
                // Fails silently
            }
        }
        public void DeleteFromData()
        {
            IINode node = Node;

            if (node == null)
            {
                return;
            }
            node.DeleteProperty(GetPropertyName());
            IsDirty = true;
        }
예제 #3
0
 public void DeleteFromData(IINode dataNode = null)
 {
     dataNode = dataNode ?? Loader.Core.RootNode;
     dataNode.DeleteProperty(GetPropertyName());
     IsDirty = true;
 }