Beispiel #1
0
        public void clearRelationship()
        {
            SelectedNodeId = null;
            string topLevelName = CswNbtNodePropLocation.GetTopLevelName(_CswNbtResources);

            CachedNodeName = topLevelName;
            CachedPath     = topLevelName;
            CachedBarcode  = string.Empty;
        }
Beispiel #2
0
        public void RefreshNodeName()
        {
            string topLevelName = CswNbtNodePropLocation.GetTopLevelName(_CswNbtResources);

            CachedNodeName = topLevelName;
            CachedPath     = topLevelName;
            CachedBarcode  = string.Empty;

            if (SelectedNodeId != null)
            {
                CswNbtObjClassLocation NodeAsLocation = _CswNbtResources.Nodes.GetNode(SelectedNodeId);
                if (null != NodeAsLocation)
                {
                    CachedNodeName = NodeAsLocation.NodeName;
                    CachedPath     = _generateLocationPath(NodeAsLocation);
                    CachedBarcode  = NodeAsLocation.Barcode.Barcode;
                    SyncGestalt();
                }
            }

            this.PendingUpdate = false;
        }