Get Resource File


Node Information
Copies specified resource file to the specified location on disk. You need to specify the resource name include its extension (ex: file.txt).
General Information
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
Resource IN String MULTIPLE FALSE FALSE
File OUT String MULTIPLE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.Application.Resources
{
    [IsNode("Get Resource File")]
    public class GetResourceFile : Node
    {
        Port resName = new Port(PortType.IN, typeof(string), AcceptsLinks.MULTIPLE, "Resource");
        Port dest = new Port(PortType.OUT, typeof(string), AcceptsLinks.MULTIPLE, "File");
        public GetResourceFile()
        {
            this.Name = "Get Resource File";
            AddPort(resName);
            AddPort(dest);
            Information = "Copies specified resource file to the specified location on disk. " +
                "You need to specify the resource name include its extension (ex: file.txt).";
        }
        public override void UpdateResults()
        {
            dest.Instructions = "ResMan.CopyAndGet(" + GetValue(resName) + ")";
        }
    }
}