SilverlightMappingToolBasic.MapDepth.MapDepthNavigator.ConnectNodeToMap C# (CSharp) Method

ConnectNodeToMap() private method

private ConnectNodeToMap ( System.Guid nodeId, Point location ) : void
nodeId System.Guid
location Point
return void
        private void ConnectNodeToMap(Guid nodeId, Point location)
        {
            TypeManager typeManager = IoC.IoCContainer.GetInjectionInstance().GetInstance<TypeManager>();
            IDescriptorTypeProxy toDescriptorTypeProxy = typeManager.GetDescriptorType("To");
            IDescriptorTypeProxy fromDescriptorTypeProxy = typeManager.GetDescriptorType("From");

            Dictionary<IDescriptorTypeProxy, Guid> nodes = new Dictionary<IDescriptorTypeProxy, Guid>();
            nodes.Add(toDescriptorTypeProxy, FocalNodeId);
            nodes.Add(fromDescriptorTypeProxy, nodeId);

            IRelationshipTypeProxy relationshipTypeProxy = typeManager.GetRelationshipType("MapContainerRelationship");

            ConnectNodesAsync(nodes, relationshipTypeProxy, location, string.Empty);
        }