Copy All Resources


Node Information
Copies all embedded resource files to the specified location on disk. Select a folder and call this node and all embedded files will be copied to that folder.
General Information
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
Copy IN RUN MULTIPLE FALSE FALSE
Destination IN String MULTIPLE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.Application.Resources
{
    [IsNode("Copy All Resources To Disk")]
    public class ResourceCopyAll : Node
    {
        Port run = new Port(PortType.IN, typeof(RUN), AcceptsLinks.MULTIPLE, "Copy");
        Port dest = new Port(PortType.IN, typeof(string), AcceptsLinks.MULTIPLE, "Destination");
        public string Destination { set { dest.Value = value; } get { return GetRuntimeValue(dest); } }
        public ResourceCopyAll()
        {
            NodeType = KGraph.NodeType.Method;
            Destination = string.Empty;
            Name = "Copy All Resources";
            AddPort(run);
            AddPort(dest);
            Information = "Copies all embedded resource files to the specified location on disk. " +
                "Select a folder and call this node and all embedded files will be copied to that folder.";
        }
        public override string Code()
        {
            return "ResMan.CopyResAll(" + GetValue(dest) + ");";
        }
    }
}